/* OTP sent message */
.otp-sent-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eaf7f0;
    color: #1a7a4a;
    border: 1px solid #b6e8cf;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}
.otp-sent-msg i { font-size: 16px; }

/* Security note */
.otp-security-note {
    background: #fff8e6;
    color: #7a5c00;
    border: 1px solid #fde08a;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* Resend row */
.otp-resend-row { min-height: 32px; }

.otp-timer-text {
    font-size: 13px;
    color: #888;
}
.otp-timer-text strong { color: #e85d04; }

.btn-resend {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.btn-resend:hover { color: #084298; }
.btn-resend i { font-size: 12px; margin-right: 4px; }

.login-tab-switcher {
    background: #f5f7fb;
    border: 1px solid #e4ebf2;
    border-radius: 14px;
    padding: 5px;
    gap: 5px;
}

.login-tab-switcher .tab-btn {
    border: 0;
    border-radius: 10px;
    color: #4b5563;
    font-weight: 700;
    min-height: 48px;
}

.login-tab-switcher .tab-btn.active-tab {
    background: #12a889;
    color: #fff;
    box-shadow: 0 8px 18px rgba(18, 168, 137, 0.22);
}

#otpVerifyBox {
    margin-top: 12px;
}

#otpCode,
#otpPhone,
#email,
#password {
    border-radius: 12px;
}

.btn-login {
    border-radius: 12px;
    font-weight: 800;
}

/* ── Login Tab Switcher ─────────────────────── */
.tab-btn {
    border-radius: 0;
    background: #f8f9fa;
    color: #555;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
}

.tab-btn.active-tab {
    background: var(--theme-color, #0d6efd);
    color: #fff;
    font-weight: 600;
}

.tab-btn:hover:not(.active-tab) {
    background: #e9ecef;
}
     /* ==============================
   Login / Signup Card
================================ */
.log-in-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  max-width: 520px;
  margin: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ==============================
   Title
================================ */
.log-in-title h3 {
  font-weight: 700;
  color: #222222;
  margin-bottom: 6px;
}

.log-in-title span {
  color: #0da487;
}

.log-in-title p,
.log-in-title h4 {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 0;
}

/* ==============================
   Inputs & Selects
================================ */
.form-control,
.form-select,
textarea {
  border-radius: 10px;
  border: 1px solid #dddddd;
  font-size: 14px;
  padding: 12px 14px;
}

/* Floating label fix */
.form-floating > label {
  font-size: 13px;
  color: #777;
}

/* Focus state */
.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: #0da487;
  box-shadow: 0 0 0 0.15rem rgba(13, 164, 135, 0.25);
}

/* Textarea */
textarea {
  min-height: 90px;
  resize: none;
}

/* ==============================
   Checkbox
================================ */
.remember-box label {
  font-size: 14px;
  color: #555;
}

.remember-box span {
  color: #0da487;
  font-weight: 500;
}

/* ==============================
   Primary Button
================================ */
.btn-login {
  background: linear-gradient(135deg, #0da487, #13c1a3);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #0b8f76, #0da487);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-login:active {
  transform: translateY(0);
}

/* ==============================
   Links
================================ */
.sign-link {
  color: #0da487;
  font-weight: 600;
  font-size: 14px;
}

.sign-link:hover {
  text-decoration: underline;
}

/* Forgot password */
.forgot-password {
  font-size: 14px;
  color: #0da487;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* ==============================
   Image Section
================================ */
.image-contain img {
  max-width: 85%;
}

/* ==============================
   Responsive Tweaks
================================ */
@media (max-width: 576px) {
  .log-in-box {
    padding: 30px 20px;
  }
}

.remember-box {
  position: relative;
  padding-left: 26px;          /* space for checkbox */
  font-size: 14px;
  line-height: 1.5;
}

.remember-box input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 4px;                    /* aligns with first text line */
  width: 16px;
  height: 16px;
}

.remember-box label {
  margin: 0;
  cursor: pointer;
}
/* TERMS MODAL FIX */
.terms-body {
    max-height: 65vh;
    overflow-y: auto;
    padding: 20px 24px;
}

.terms-body p {
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 14.5px;
    color: #444;
}

  /*
         * FIX: .background-image-2 renders a black/dark background
         * in the template CSS, making the section invisible.
         * This override restores a visible background.
         */
        section.log-in-section.background-image-2 {
            background-image: none !important;
            background-color: #f8f9fa !important;
        }

        /* Password toggle button */
        #togglePassword {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            z-index: 10;
            color: #888;
            background: none;
            border: none;
            padding: 0;
            line-height: 1;
        }
        #togglePassword:hover { color: var(--theme-color, #0d6efd); }


