.auth {
    background: #fff;
    min-height: calc(100vh - 64px);

    --ink: #1f2d3d;
    --teal: #0da7ac;
    --teal-deep: #0a8fa4;
    --teal-darker: #074447;
    --foam: #eafcfb;
    --line: #e3edec;
    --muted: #5c6d6c;
}

.auth * {
    box-sizing: border-box;
}

/* ============================================
   NAVBAR (used on multi-step auth pages, e.g. register)
   ============================================ */
.auth-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(10, 110, 116, 0.05);
}
/* ── Remember me ─────────────────────────────── */

.form-checkk {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 16px;
    margin-left: 12px; /* adjust this value */
}

.form-checkk-input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}



.auth-footer-text button.auth-link:hover {
    text-decoration: underline;
}


.form-checkk-input:checked {
    background: var(--teal);
    border-color: var(--teal);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

.form-checkk-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 167, 172, 0.2);
}

.form-checkk-label {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    user-select: none;
}

.auth-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-brand {
    font-size: 17px;
    font-weight: 800;
    color: var(--teal-darker);
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.auth-brand i {
    color: var(--teal);
    font-size: 18px;
}

.auth-back {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--teal-deep);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
}

.auth-back:hover {
    color: var(--teal-darker);
}

/*  BANNER  */
.auth-banner {
    background: linear-gradient(150deg, var(--teal), var(--teal-deep));
    color: #fff;
    text-align: center;
    padding: 44px 20px 60px;
}

.auth-banner h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
}

.auth-banner p {
    font-size: 14px;
    color: #dff6f4;
    margin: 0;
}

/* STEP INDICATOR (used on multi-step auth pages) */
.auth-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.auth-step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #bfe8e6;
}

.auth-step-dot .circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #dff6f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.auth-step-dot.active .circle {
    background: #fff;
    color: var(--teal-deep);
    border-color: #fff;
}

.auth-step-dot.done .circle {
    background: rgba(255, 255, 255, 0.9);
    color: var(--teal-deep);
    border-color: #fff;
}

.auth-step-line {
    width: 24px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.25);
}

.auth-step-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-bottom: 14px;
}

/* LAYOUT WRAPPERS */
.auth-wrap {
    max-width: 480px;
    margin: -34px auto 60px;
    padding: 0 20px;
}

.auth-wrap-centered {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* CARD */
.auth-card {
    background: #fff;
    border-radius: 16px 16px 16px 16px;
    max-width: 460px;
    width: 100%;
    padding: 40px 36px;
    box-shadow: 0 18px 45px rgba(10, 110, 116, 0.50);
    border: 1px solid var(--line);
}

/* Logo + brand block inside the card (login-style pages) */
.auth-card-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
    display: inline-block;
}

.auth-card-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 4px;
}

.auth-card-header .auth-tagline {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin: 0;
}

/* Divider under the brand block, before the card title */
.auth-card-header + .auth-card-title {
    border-top: 2.5px solid var(--line);
    padding-top: 20px;
}

.auth-card-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 26px;
}

/* Title + subtitle + step indicator block inside the card (register-style pages) */
.auth-card-intro {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-intro h1 {
    font-size: 23px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 6px;
}

.auth-card-intro p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0 0 20px;
}

/* Step indicator, light-background variant (used inside .auth-card-intro) */
.auth-card-intro .auth-steps {
    margin-top: 0;
}

.auth-card-intro .auth-step-dot {
    color: var(--muted);
}

.auth-card-intro .auth-step-dot .circle {
    background: var(--foam);
    color: var(--teal-deep);
    border: 1.5px solid var(--line);
}

.auth-card-intro .auth-step-dot.active {
    color: var(--ink);
}

.auth-card-intro .auth-step-dot.active .circle {
    background: linear-gradient(135deg, var(--teal), var(--teal-deep));
    color: #fff;
    border-color: transparent;
}

.auth-card-intro .auth-step-dot.done .circle {
    background: var(--teal);
    color: #fff;
    border-color: transparent;
}

.auth-card-intro .auth-step-line {
    background: var(--line);
}

.auth-email-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--foam);
    color: var(--teal-darker);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.auth-email-chip .verified {
    color: #0d7a4a;
    margin-left: 4px;
}

/* FORM FIELDS */
.auth-label {
    font-weight: 600;
    color: var(--ink);
    font-size: 13.8px;
    margin-bottom: 7px;
    display: block;
}

.auth-hint {
    font-size: 12px;
    color: var(--muted);
    margin: -10px 0 16px;
    display: block;
}

.auth-input {
    width: 100%;
    border: 1px solid #dde3e2;
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 14.5px;
    margin-bottom: 6px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 167, 172, 0.12);
}

.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}

/* Icon + pill variant, used for login's email/password fields */
.auth-field {
    position: relative;
    margin-bottom: 16px;
}

.auth-field .field-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
    pointer-events: none;
}

.auth-field .toggle-icon {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
}

.auth-field .toggle-icon:hover {
    color: var(--teal-deep);
}

.auth-field .auth-input {
    border-radius: 30px;
    padding: 15px 46px;
    font-size: 15.5px;
    margin-bottom: 0;
}

.auth-input-otp {
    text-align: center;
    letter-spacing: 6px;
    font-weight: 700;
}

.auth-row .auth-field {
    margin-bottom: 0;
}

/* BUTTONS  */
.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--teal), var(--teal-deep));
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(10, 143, 164, 0.28);
}

.auth-btn:active {
    transform: scale(0.98);
}

/* Pill variant, used on login */
.auth-btn-pill {
    border-radius: 30px;
    padding: 15px;
    font-size: 15.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Outline secondary button, e.g. "Create New Account" */
.auth-btn-outline {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    color: var(--ink);
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.auth-btn-outline:hover {
    background: var(--foam);
    border-color: var(--teal);
    color: var(--teal-darker);
}

/* DIVIDERS */
.auth-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 22px 0 16px;
}

.auth-divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 22px 0 16px;
}

.auth-divider-or::before,
.auth-divider-or::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--line);
}

.auth-divider-or span {
    padding: 0 12px;
}

/* FOOTER TEXT */
.auth-footer-text {
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
}

.auth-footer-text a {
    color: var(--teal-deep);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}
.auth-footer-form {
    margin: 0;
}

.auth-footer-text button.auth-link {
    color: var(--teal-deep);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.auth-footer-text button.auth-link:hover {
    text-decoration: underline;
}

/* ── Resend OTP ──────────────────────────────── */

#resendOtpWrap {
    text-align: center;
    margin-top: 12px;
}

#resendOtpWrap .auth-footer-form {
    display: inline-block;
}

#resendOtpWrap button.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--teal-deep);
    font-size: 13.5px;
    font-weight: 600;
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

#resendOtpWrap button.auth-link:hover {
    background: var(--foam);
    color: var(--teal-darker);
    text-decoration: none;
}

#resendOtpWrap button.auth-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

#resendOtpWrap button.auth-link:hover i {
    transform: rotate(180deg);
}




/* ALERTS*/
.auth-error {
    background: #fdeeee;
    color: #9c2b2b;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.auth-success {
    background: var(--foam);
    color: var(--teal-darker);
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.auth-error i,
.auth-success i {
    margin-top: 2px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .auth-banner {
        padding: 36px 16px 52px;
    }

    .auth-banner h1 {
        font-size: 23px;
    }

    .auth-wrap {
        padding: 0 14px;
        margin-top: -28px;
    }

    .auth-wrap-centered {
        padding: 24px 14px;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .auth-card-title {
        font-size: 21px;
    }

    .auth-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-nav-inner {
        padding: 0 14px;
    }
}
