/* =================================================================
   MEDOCO HEALTH - LOGIN PAGE STYLES
   ================================================================= */

/* =================================================================
   1. BASE STYLES & TYPOGRAPHY
   ================================================================= */

body,
input,
select,
textarea {
  font-size: 12pt !important;
}

/* =================================================================
   2. LAYOUT & STRUCTURE
   ================================================================= */

/* Main Banner Container */
#banner {
  margin: 0px !important;
  padding: 1em 1em 60px 1em !important;
  padding-bottom: calc(1em + 60px) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Inner Content Wrapper */
.medoco-inner {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Footer */
.medoco__footer {
  background-color: #151921;
  z-index: 10000;
  padding: 1em;
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
}

.medoco_footer__content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

/* =================================================================
   3. LOGO COMPONENT
   ================================================================= */

.medoco-logo {
  display: flex;
  width: max-content;
  margin: 0 auto;
  align-items: center;
}

.medoco-logo__image {
  height: 100px;
  display: block;
}

.medoco-logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 64px;
  margin-left: 10px;
}

.medoco-logo__text__top {
  font-weight: normal;
  font-size: 3.2em;
  color: rgb(255, 255, 255);
  line-height: 1;
}

.medoco-logo__text__bottom {
  font-weight: 600;
  font-size: 3.2em;
  color: rgb(255, 255, 255);
  line-height: 1;
}

/* =================================================================
   4. STARTUP INTERFACE
   ================================================================= */

.startup-container {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  user-select: none;
  pointer-events: none;
}

.startup-text {
  font-size: 1.75em;
  font-weight: 400;
  margin: 1.5em 0 1em 0;
  letter-spacing: 0.5px;
}

.startup-separator {
  display: flex;
  align-items: center;
  margin: 1em 0;
  color: rgba(255, 255, 255, 0.6);
}

.startup-separator::before,
.startup-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.startup-separator::before {
  margin-right: 0.75em;
}

.startup-separator::after {
  margin-left: 0.75em;
}

.startup-secondary {
  font-size: 1.4em;
  margin-top: 1em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

/* =================================================================
   5. STATUS MESSAGES
   ================================================================= */

.status-message {
  border: 1px solid;
  border-radius: 4px;
  padding: 0.75em;
  margin: 1em 0;
  text-align: center;
  font-weight: 500;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4em);
  max-width: 600px;
  z-index: 50;
}

.status-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.status-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.status-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* =================================================================
   6. LOGIN MODAL
   ================================================================= */

.login-modal {
  display: none;
  position: fixed;
  bottom: 60px; /* Above the footer */
  left: 0;
  width: 100%;
  background: #1f2531fa;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  z-index: 99;
  transform: translateY(100%);
  transition: transform 0.2s ease-out;
}

.login-modal.show {
  transform: translateY(0);
}

.login-modal-content {
  padding: 1.5rem 2rem;
  width: 100%;
  max-width: none;
  position: relative;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.login-modal-header {
  color: white;
  text-align: left;
  margin-bottom: 0.6rem;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 400;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.max-width-inner-full {
  max-width: 55em;
  width: 100%;
}

.login-modal-close {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5em;
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1.875rem;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  width: auto;
  height: auto;
}

.login-modal-close:hover {
  color: white;
}

/* =================================================================
   7. FORM ELEMENTS
   ================================================================= */

.traditional-login-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  width: 100%;
  margin: unset;
}

.login-modal .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 4px;
  padding: 0.75em 1em;
  flex: 1;
  box-sizing: border-box;
  font-size: 0.95rem;
}

.login-modal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-modal .form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.15);
}

.login-modal .btn-primary {
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.login-modal .btn-primary:hover {
  background-color: #1e2d52;
}

/* =================================================================
   8. WEBAUTHN BUTTON
   ================================================================= */

#webauthn-login-btn {
  min-width: 200px;
  transition: all 0.3s ease;
}

#webauthn-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =================================================================
   9. FOOTER INTERACTIONS
   ================================================================= */

.footer-longpress-active {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transition: background-color 0.1s ease;
}

.footer-longpress-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #4c5c96;
  transition: width 2s linear;
  width: 0;
}

.footer-longpress-progress.active {
  width: 100%;
}

/* =================================================================
   10. RESPONSIVE DESIGN
   ================================================================= */

/* Small Mobile Devices */
@media only screen and (max-width: 360px) {
  .medoco-logo {
    transform: scale(0.7);
  }

  .medoco_footer__content {
    flex-direction: column;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .startup-text {
    font-size: 1.3em;
  }
  
  .startup-secondary {
    font-size: 1em;
  }
  
  .login-modal-content {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .login-modal-header {
    text-align: center;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .traditional-login-form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .login-modal .form-control {
    margin-right: 0;
  }
  
  .login-modal .btn-primary {
    width: 100%;
  }
  
  .login-modal-close {
    top: 0.5rem;
    right: 1rem;
  }
}

/* Large Desktop Screens */
@media only screen and (min-width: 1000px) {
  .medoco-logo {
    transform: scale(1.1);
    margin-bottom: 3rem;
  }
}

@media only screen and (min-width: 1200px) {
  .medoco-logo {
    transform: scale(1.2);
    margin-bottom: 3.5rem;
  }
}

@media only screen and (min-width: 1400px) {
  .medoco-logo {
    transform: scale(1.3);
    margin-bottom: 4rem;
  }
}

@media only screen and (min-width: 1600px) {
  .medoco-logo {
    transform: scale(1.4);
    margin-bottom: 5rem;
  }
}
