html,
body {
  /* Font */ font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  /* Background */ background: linear-gradient(160deg, white, #7cbfc8, #00a0a4, #007b7e);
  /* Layout */ margin: 0; padding: 0; height: 100vh;
  /* Display */ display: flex; justify-content: center; align-items: center; overflow: hidden;
}

/* === UNIVERSAL STYLES === */

/* Universal font sizes */
h1 { font-size: clamp(1rem, 2.5vw, 1.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 3rem); }
p { font-size: clamp(1rem, 2.5vw, 1.5rem); line-height: 2rem; }

/* ========== Layout ========== */
.signin-container {
  /* Background */ background: #fff;
  /* Layout */ width: 100%; max-width: 100%; border-radius: 0.75rem; box-shadow: 0 8px 24px rgba(0,0,0,0.15); gap: 2rem;
  /* Display */ display: none; overflow: hidden;
}

/* === INTRODUCTION OVERLAY === */
  .introduction-overlay {
    /* Layout */ inset: 0; width: 100vw; height: 100vh; margin: 0;
    /* Display */ position: fixed !important; z-index: 99999; display: flex; flex-direction: column; align-items: center; overflow: hidden;
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden;
  }

  /* Background image */
  .intro-bg {
    /* Layout */ inset: 0; width: 100%; height: 100%;
    /* Display */ position: fixed !important; object-fit: cover; object-position: center center; z-index: 1;
  }

  /* Black tint overlay */
  .intro-tint {
    /* Background */ background: rgba(0, 0, 0, 0.6);
    /* Layout */ inset: 0 ; width: 100%; height: 100%;
    /* Display */ position: absolute; z-index: 2;
    /* Visuals */ pointer-events: none;
  }

  /* Text and button container */
  .intro-content {
    /* Font */ color: white;
    /* Layout */ padding: 3rem; max-width: 600px;
    /* Display */ position: relative; z-index: 3; text-align: left; overflow: hidden;
  }
  .intro-logo { position: relative; z-index: 3; text-align: center; margin-top: 8rem; margin-bottom: 4rem; }
  .intro-logo h1 { font-size: 2rem; letter-spacing: 2px; font-weight: bold; color: white; margin: 0; }
  .intro-content p { font-size: 1.2rem; margin-bottom: 1rem; }
  .intro-content a { color: white; transition: all 0.3s ease; }
  .intro-content a:hover { color: aliceblue; }

  #start-signup-btn:hover { background-color: white; color: #00a0a4; z-index: 4; position: relative; cursor: pointer; pointer-events: auto; }
/**/


/* === LOADER OVERLAY === */
/* Full-page overlay */
#loader {
  /* Background */ background: white;
  /* Layout */ width: 100%; height: 100%;
  /* Position */ display: flex; position: fixed; top: 0; left: 0; ; justify-content: center; align-items: center; z-index: 100000; opacity: 0; /* stays above everything */
  /* Visuals */ transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Spinner style */
#loader.active { opacity: 1; visibility: visible; }

/* Circular spinner */
.spinner {
  /* Layout */ width: 3.75rem; height: 3.75rem; border: 6px solid #e0f2f1; border-top: 6px solid teal; border-radius: 50%;
  /* Visuals */ animation: spin 1s linear infinite;
}

/* Animation */
  /* Spinning animation */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  /* Fade-out effect */
  .fade-out {
    animation: fadeOut 0.5s ease forwards;
  }

  @keyframes fadeOut {
    to {
      opacity: 0; visibility: hidden;
    }
  }
/**/

/* === MAIN CONTENT === */
/* Left column (form side) */
  .left-column {
    /* Margin */ padding: 4rem;
    /* Display */ display: flex; flex-direction: column; justify-content: center; flex: 1;
  }

  /* Logo (text) styling */
    .logo {
      /* Font */ font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: bold; color: #00a0a4; letter-spacing: 0.02rem;
      /* Layout */ margin-bottom: 0.5rem;
    }
    #logo-link { text-decoration: none; }
  /**/

  /* Styling other text inside the left column */
  .left-column h2 { margin: 0; font-size: 1.2rem; font-weight: 600; }
  .left-column p { margin-top: 0.5rem; font-size: 1rem; margin-bottom: 1.5rem; color: #666; }
/**/

/* Right column (branding/design side) */
  .right-column { flex: 1; position: relative; overflow: hidden; padding: 2rem; }
  .image-container { border-radius: 0.5rem; }
  .bg-image {
    /* Layout */ width: 100%; height: 100%; object-fit: cover; top: 0; left: 0;
    /* Display */ position: absolute; z-index: 0;
  }

  /* Steps row (indicates which step of the signin process we are on) */
  .steps-row {
    /* Layout */ padding: 1rem; margin: 0;
    /* Display */ display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  }
  .steps-row p { margin: 0; }
  .steps-row button { margin: 0; }

  /* A button to go back to the previous step */
  #previous-btn { background: none; color: #ddd; padding: 0; }
  #previous-btn:hover { color: #00a0a4; }

/**/

/* === INPUT ROWS === */
  .row-inputs { display: flex; flex-direction: column; gap: 0.5rem; }
  .row-inputs input {
    /* Font */ font-size: clamp(1rem, 2.5vw, 1.2rem); font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    /* Layout */ padding: clamp(0.6rem, 1vw, 1.25rem) clamp(1rem, 1.5vw, 1.5rem);border-radius: 1rem;border: 1px solid #ccc;
  }
  .row-inputs input:focus { border-color: #00a0a4; outline: none; box-shadow: 0 0 4px rgba(0, 123, 255, 0.2); }

  /* Styling the phone input field specifically */
  .phone-input { display: flex; align-items: center; border-radius: 0.75rem; padding: 0.5rem; }
  .phone-input .prefix {
    /* Font */ font-size: 0.9rem; color: #4d4d4d;
    /* Layout */ gap: 0.5rem; padding-right: 0.5rem;
    /* Display */ display: flex; align-items: center;    
  }

  input[type=number]::-webkit-outer-spin-button,
  input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
/**/

/* Styling the otp row and related contents */
  #otp-btn { display: none; } /* Hidden by default */
  #otp { max-width: 3rem; display: none; }
  #otp-timer { display: none; }
  .otp-row { display: flex; flex-direction: row; align-items: center; gap: 1rem; }

  /* A row showing feedback on OTP confirmation */
  .otp-verification-row { margin-top: 0.5rem; }
  .otp-verified-message { margin-left: 1rem; color: green; display: none; }
  .otp-verified-message i { margin-right: 1rem; }

.flag-circle {
  width: 1.75rem;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

.row-auth-method {
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.row-auth-method input {
  margin-right: 0.5rem;
}

#email,
#password,
.phone-input {
  display: none;
}

/* Link to the login page */
.login-btn {
  /* Font */ font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; color: white; font-size: clamp(1rem, 2.5vw, 1.2rem);
  /* Background */ background-color: #7cbfc8;
  /* Layout */ border: none; border-radius: 1rem; padding: clamp(0.6rem, 1vw, 1.25rem) clamp(1rem, 1.5vw, 1.5rem); margin-top: 1rem;
  /* Visuals */ cursor: pointer; transition: all 0.3s ease;
}
.login-btn:hover { background: #007b7e; }
.login-btn:active { transform: scale(0.98); }

/* === SIGN UP ROW === */
  .signup-row {
    /* Font */ text-align: center; color: #555;
    /* Layout */ margin-top: 1.2rem; flex-wrap: nowrap;
    /* Display */ display: flex;
  }
  .signup-row a {
    /* Font */ color: #7cbfc8; text-decoration: none; font-weight: 500;
    /* Visuals */ transition: all 0.3s ease;
  }
  .signup-row a:hover { text-decoration: underline; color: #00a0a4; }
/**/

/* === QUICK LINKS ROW === */
  .quick-links-row { display: flex; flex-direction: row; }
  .quick-links-row a {
    /* Font */ color: #ccc; text-decoration: none;
    /* Layout */ margin-right: 1.5rem;
    /* Visuals */ transition: all 0.3s ease; cursor: pointer;
  }
  .quick-links-row a:hover { color: #4d4d4d; }
/**/

/* Notification card */
  .notification-card {
    /* Font */ font-size: 0.9rem;
    /* Background */ background: white;
    /* Layout */ padding: 0.5rem 0.75rem; top: -100px; /* hidden above the screen */ right: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); gap: 1rem; border-radius: 0.5rem;
    /* Display */ display: flex; flex-direction: row; position: absolute; align-items: right; z-index: 10; opacity: 0;
    /* Visuals */ transition: all 0.4s ease; /* smooth slide + fade */
  }
  .notification-card.show { top: 1.5rem; /* visible position */ opacity: 1; /* fade in */ }
  .notification-card i { color: white; }

  .icon-circle {
    /* Layout */ width: 1rem; height: 1rem; padding: 0.1rem; border-radius: 50%; justify-content: center;
    /* Background */ background: #ff4d4f;
    /* Display */ display: flex; align-items: center; 
  }

  /* Success state */
  .notification-card.success .icon-circle { background: #52c41a; /* green */ }
  .notification-card.success .icon-circle i { font-family: "Font Awesome 6 Free"; font-weight: 900; }
  .notification-card.success .icon-circle i::before { content: "\f00c"; /* FontAwesome check (fa-check) */ }

  /* A notification card for step 1 if first and last names are not provided */
  #missing-names-warning { display: none; }

  #missing-names-warning i {
    /* Font */ color: white;
    /* Background */ background: #ff4d4f;
    /* Layout */ width: 1rem; height: 1rem; padding: 0.1rem; border-radius: 50%;
    /* Display */ display: flex; flex-direction: row;
  }
/**/

.hidden { opacity: 0; visibility: hidden; transition: opacity 0.5s ease; }
/* ========== Responsive ========== */
@media (max-width: 768px) {
  body { margin: 0; padding: 0; }
  
  .signin-container {
    /* Layout */ width: 100%; max-width: 100%; height: 100vh; border-radius: 0;
    /* Display */ display: none; position: fixed; overflow: hidden; flex-direction: column;
  }
  .quick-links-row { margin-top: 8rem; }
  .right-column { height: 200px; }
  .bg-image { display: none; }

  #phone { max-width: 7rem; }
}
