/* Wrapper spacing */
.form-group {
    margin-bottom: 14px;
}
#password-hint{
  margin-top:6px; 
  font-size:13px; 
  color:#27ae60;
}

.auth-modal-text{
  margin-bottom: 10px;
}
/* Shared input + select styling */
.form-input {
    width: 100%;
    padding: 12px 14px;

    font-size: 15px;
    color:#31353de0;

    background-color: #fff;
    border: 1px solid #d0d7e2;
    border-radius: 8px;

    outline: none;
    cursor: pointer;

    /* Remove default select arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image:
        linear-gradient(45deg, transparent 50%, #6c63ff 50%),
        linear-gradient(135deg, #6c63ff 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 55%,
        calc(100% - 14px) 55%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.form-input:hover {
    border-color: #121213;
}

/* Focus */
.form-input:focus {
    border-color:#121213;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

/* Placeholder-style first option */
.form-input option[value=""] {
    color: #999;
}

/* Disabled select */
.form-input:disabled {
    background-color: #f5f6fa;
    cursor: not-allowed;
    color: #999;

}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error message text */
.field-error-msg {
    margin-top: 6px;
    font-size: 13px;
    color: #e53935;
}


/* ===============================
   OTP VERIFICATION CARD
================================ */

.otp-card {
  display: none; /* controlled by JS */
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 26px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  animation: fadeSlideIn 0.35s ease-out;
}

/* Smooth entry animation */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* OTP info message */
.otp-card .message {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* OTP input styling */
.otp-card input[name="otp"] {
  text-align: center;
  letter-spacing: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1.8px solid #dcdcdc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.otp-card input[name="otp"]:focus {
  outline: none;
  border-color: #6c63ff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.18);
}

/* Verify button spacing */
.otp-card .btn {
  width: 100%;
  margin-top: 14px;
}

/* Resend OTP link */
#resend-otp {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.signup-hint {
  font-size: 0.85rem;
  color: #666;
  margin: 6px 0 12px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    /* Takes up all remaining space */
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: #f9fbff;
    color: var(--text-dark);
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

 .input-error {
      border: 2px solid #e74c3c !important;
      box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
    }
    .field-error-msg {
      color: #e74c3c;
      font-size: 0.9rem;
      margin-top: 4px;
    }
    .error, .message {
      margin-bottom: 12px;
      padding: 10px;
      border-radius: 6px;
    }
    .error { background: rgba(231,76,60,0.06); color: #c0392b; }
    .message { background: rgba(46,204,113,0.06); color: #27ae60; }

/* Hero Section */
.hero {
    font-family: 'Poppins', system-ui, sans-serif;
    background: linear-gradient(87deg, rgb(205 201 237 / 50%), rgb(191 228 245 / 45%));
    padding: 40px 12px;
    text-align: center;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}


.hero-description {
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    max-width: 1000px;
    margin: 0px auto;
}



.auth-container {
    font-family: 'Poppins', system-ui, sans-serif;
    background: linear-gradient(87deg, rgb(205 201 237 / 50%), rgb(191 228 245 / 45%));
    display: block;
    margin: 4rem auto;
    width: 450px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.tabs button.active {
    border-bottom: 2px solid #007bff;
    font-weight: bold;
}

form {
    display: none;
}

form.active {
    display: block;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    font-family: 'Poppins', system-ui, sans-serif;
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    box-sizing: border-box;
}
 .input-error {
      border: 2px solid #e74c3c !important;
      box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
    }

.message {
    font-family: 'Poppins', system-ui, sans-serif;
    color: green;
    margin-bottom: 10px;
    text-align: center;
}

.error {
    font-family: 'Poppins', system-ui, sans-serif;
    color: red;
    margin-bottom: 10px;
    text-align: center;
}

.dropdown {
    font-family: 'Poppins', system-ui, sans-serif;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[list] {
    font-family: 'Poppins', system-ui, sans-serif;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    font-family: 'Poppins', system-ui, sans-serif;
    background-color: #0619f0a3;
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    margin: 15px auto 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.resend-btn {
    font-family: 'Poppins', system-ui, sans-serif;
    background-color: #5835f2d8;
    color: white;
    border: none;
    text-align: center;
    padding: 10px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    margin: 15px auto 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.resend-btn:hover {
    background-color: #0056b3;
}





/* Forgot password link */
.signup-hint a {
  color: #6c63ff;
  font-weight: 500;
  cursor: pointer;
}

.signup-hint a:hover {
  text-decoration: underline;
}

/* Inputs inside OTP / Reset cards */
.otp-card input[type="email"],
.otp-card input[type="password"],
.otp-card input[type="text"] {
  text-align: center;
  font-size: 1rem;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1.8px solid #dcdcdc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.otp-card input:focus {
  outline: none;
  border-color: #6c63ff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.18);
}

/* Error box inside reset flow */
.otp-card .error {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
}

/* Disabled tabs during OTP / reset flow */
.tabs button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-bottom-color: transparent;
}

/* Smooth card transition */
.otp-card {
  animation: fadeSlideIn 0.35s ease-out;
}

.Auth-modal-overlay-style {
    width:min(520px, 92vw);
    margin:0px auto;
    top: 25%;
    background:linear-gradient(257deg, rgb(221 219 240), rgb(208 230 240));
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
    padding:22px 22px 18px;
    position:relative;
}

.auth-modal-text{
    margin:12px 0 18px; 
    color:#333; 
    font-size:14px;
}
.Modal-button{
    border:none; 
    background:transparent; 
    font-size:22px; 
    cursor:pointer; 
    line-height:1;  
}

.Modal-button-ok{
    padding:10px 16px; 
    border-radius:10px; 
    border:1px solid #ddd;
    background:#2563eb; 
    cursor:pointer; 
    font-weight:600;
    color: #ffffff;
}

    /* small helper styles (move to CSS file if preferred) */
    .input-error {
      border: 2px solid #e74c3c !important;
      box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
    }

    .field-error-msg {
      color: #e74c3c;
      font-size: 0.9rem;
      margin-top: 4px;
    }

    .error,
    .message {
      margin-bottom: 12px;
      padding: 10px;
      border-radius: 6px;
    }

    .error {
      background: rgba(231, 76, 60, 0.06);
      color: #c0392b;
    }

    .message {
      background: rgba(46, 204, 113, 0.06);
      color: #27ae60;
    }

.signup-success{
    text-align:center;
}

.success-icon{
    font-size:48px;
    margin-bottom:12px;
}

.signup-success h3{
    margin:10px 0 18px;
    color:#1e3a8a;
}

.info-box{
    margin:12px 0;
    padding:14px 16px;
    background:linear-gradient(87deg, rgba(205, 201, 237, 0.5), rgba(191, 228, 245, 0.45));;
    border-left:4px solid #2563eb;
    border-radius:8px;
    text-align:left;
    line-height:1.6;
}

.info-box strong{
    color:#1e3a8a;
}