/* ===== EPOKA GLOBAL - AUTH PAGES STYLESHEET ===== */
/* Used by: login.html, register.html                */
/* Depends on: css/style.css (must load before)      */

/* ===== AUTH BODY RESET START ===== */
.auth-body {
    background: var(--bg-light);
    min-height: 100vh;
    overflow-x: hidden;
}
/* ===== AUTH BODY RESET END ===== */

/* ===== AUTH PAGE WRAPPER START ===== */
/*
   2-column split layout:
   Left  → brand panel (golden, decorative)
   Right → form panel (white, clean)
*/
.auth-page-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
/* ===== AUTH PAGE WRAPPER END ===== */

/* ===== LEFT PANEL START ===== */
.auth-left-panel {
    background: var(--secondary); /* deep forest green */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
    min-height: 100vh;
}

/* ===== HONEYCOMB BACKGROUND PATTERN START ===== */
.auth-hex-bg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.07;
    pointer-events: none;
    overflow: hidden;
}

.auth-hex-row {
    display: flex;
    gap: 8px;
}

.auth-hex-row--offset {
    transform: translateX(44px);
}

.auth-hex {
    display: block;
    width: 80px;
    height: 88px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: auth-hex-pulse 4s ease-in-out infinite;
}

.auth-hex:nth-child(2) {
    animation-delay: 0.5s;
}
.auth-hex:nth-child(3) {
    animation-delay: 1s;
}
.auth-hex:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes auth-hex-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.96);
    }
}
/* ===== HONEYCOMB BACKGROUND PATTERN END ===== */

/* ===== LEFT PANEL CONTENT START ===== */
.auth-left-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
    width: 100%;
    animation: auth-slide-in-left 0.6s ease both;
}

@keyframes auth-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Brand logo */
.auth-brand-logo {
    display: inline-block;
    margin-bottom: 36px;
}

.auth-brand-logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* white logo on dark bg */
}

/* Headline */
.auth-left-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 16px;
}

/* Subtext */
.auth-left-sub {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Trust / perks list */
.auth-trust-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.auth-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.18);
    border: 1.5px solid rgba(201, 162, 39, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
}
/* ===== LEFT PANEL CONTENT END ===== */
/* ===== LEFT PANEL END ===== */

/* ===== RIGHT PANEL START ===== */
.auth-right-panel {
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
}

/* Back to home link */
.auth-back-link {
    position: absolute;
    top: 28px;
    left: 36px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: var(--primary-dark);
}
/* ===== RIGHT PANEL END ===== */

/* ===== FORM CARD START ===== */
.auth-form-card {
    width: 100%;
    max-width: 440px;
    animation: auth-slide-in-right 0.6s ease both;
}

@keyframes auth-slide-in-right {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== FORM CARD END ===== */

/* ===== CARD HEADER START ===== */
.auth-card-head {
    text-align: center;
    margin-bottom: 32px;
}

/* Icon circle */
.auth-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-dark);
    margin: 0 auto 18px;
    box-shadow: 0 6px 24px rgba(201, 162, 39, 0.25);
    animation: auth-icon-pop 0.5s 0.2s ease both;
}

/* Register icon — secondary color accent */
.auth-card-icon--register {
    background: linear-gradient(
        135deg,
        rgba(33, 56, 38, 0.08),
        rgba(33, 56, 38, 0.03)
    );
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 6px 24px rgba(33, 56, 38, 0.12);
}

@keyframes auth-icon-pop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
    65% {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-card-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-card-sub {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}
/* ===== CARD HEADER END ===== */

/* ===== FORM FIELDS START ===== */

/* 2-column row for name + phone */
.auth-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 440px) {
    .auth-row-2col {
        grid-template-columns: 1fr;
    }
}

/* Field group */
.auth-field-group {
    margin-bottom: 18px;
}

/* Label */
.auth-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    margin-bottom: 7px;
}

/* Label row (with forgot link) */
.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.auth-label-row .auth-label {
    margin-bottom: 0;
}

.auth-forgot-link {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: var(--primary);
}

/* Input wrapper — icon + input + eye btn */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Left icon */
.auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

/* Input */
.auth-input {
    width: 100%;
    padding: 12px 42px 12px 40px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}

.auth-input::placeholder {
    color: #c4af8a;
    font-weight: 400;
}

.auth-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--primary-dark);
}

/* Valid state */
.auth-input.auth-valid {
    border-color: #27ae60;
    background: var(--white);
}

/* Invalid state */
.auth-input.auth-invalid {
    border-color: #c0392b;
    background: #fff9f9;
}

/* Eye toggle button */
.auth-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 15px;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
    z-index: 2;
}

.auth-eye-btn:hover {
    color: var(--primary-dark);
}

/* Inline error message */
.auth-field-error {
    display: block;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    color: #c0392b;
    margin-top: 5px;
    min-height: 16px;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.auth-field-error.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== FORM FIELDS END ===== */

/* ===== PASSWORD STRENGTH START ===== */
.auth-strength-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.auth-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.auth-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition:
        width 0.3s,
        background 0.3s;
}

.auth-strength-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    min-width: 44px;
    text-align: right;
}
/* ===== PASSWORD STRENGTH END ===== */

/* ===== CUSTOM CHECKBOX START ===== */
.auth-remember-row {
    margin-bottom: 22px;
}

.auth-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    user-select: none;
}

/* Hide native checkbox */
.auth-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkmark */
.auth-checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    position: relative;
}

.auth-checkmark::after {
    content: "";
    width: 5px;
    height: 9px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.18s;
    margin-top: -2px;
}

.auth-checkbox:checked ~ .auth-checkmark {
    background: var(--primary);
    border-color: var(--primary-dark);
}

.auth-checkbox:checked ~ .auth-checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* Terms label with links */
.auth-terms-label {
    align-items: flex-start;
    line-height: 1.5;
}

.auth-terms-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-terms-link:hover {
    text-decoration: underline;
}
/* ===== CUSTOM CHECKBOX END ===== */

/* ===== SUBMIT BUTTON START ===== */
.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
    letter-spacing: 0.3px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 162, 39, 0.5);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* ===== SUBMIT BUTTON END ===== */

/* ===== DIVIDER START ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1.5px;
    background: var(--border);
}
/* ===== DIVIDER END ===== */

/* ===== SOCIAL BUTTONS START ===== */
.auth-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-social-btn:hover {
    background: var(--bg-cream);
    border-color: var(--primary);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px var(--shadow);
}
/* ===== SOCIAL BUTTONS END ===== */

/* ===== SWITCH LINK (login/register toggle) START ===== */
.auth-switch-text {
    text-align: center;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--text-light);
    margin: 0;
}

.auth-switch-link {
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-switch-link:hover {
    color: var(--primary-dark);
}
/* ===== SWITCH LINK END ===== */

/* ===== SUCCESS TOAST START ===== */
.auth-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--secondary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 40px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    white-space: nowrap;
}

.auth-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.auth-toast i {
    color: var(--primary);
    font-size: 16px;
}
/* ===== SUCCESS TOAST END ===== */

/* ===== RESPONSIVE — TABLET (≤991px) START ===== */
@media (max-width: 991.98px) {
    .auth-page-wrap {
        grid-template-columns: 1fr;
    }

    .auth-left-panel {
        min-height: auto;
        padding: 48px 32px;
    }

    .auth-left-content {
        max-width: 100%;
        text-align: center;
    }

    .auth-left-title {
        font-size: 1.8rem;
    }

    .auth-trust-list {
        align-items: center;
    }

    .auth-right-panel {
        min-height: auto;
        padding: 40px 24px 56px;
    }

    .auth-back-link {
        top: 20px;
        left: 20px;
    }
}
/* ===== RESPONSIVE — TABLET END ===== */

/* ===== RESPONSIVE — MOBILE (≤575px) START ===== */
@media (max-width: 575.98px) {
    .auth-left-panel {
        padding: 36px 20px;
    }

    .auth-left-title {
        font-size: 1.5rem;
    }

    .auth-left-sub {
        font-size: 13.5px;
    }

    .auth-right-panel {
        padding: 36px 16px 48px;
    }

    .auth-form-card {
        max-width: 100%;
    }

    .auth-card-title {
        font-size: 1.45rem;
    }

    .auth-social-row {
        grid-template-columns: 1fr;
    }

    .auth-toast {
        font-size: 13px;
        padding: 12px 20px;
        bottom: 20px;
    }
}
/* ===== RESPONSIVE — MOBILE END ===== */

/* ===== LOGIN METHOD TABS START ===== */
.auth-login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px;
    margin-bottom: 22px;
    background: var(--bg-cream);
    border: 1.5px solid var(--border);
    border-radius: 999px;
}

.auth-login-tab {
    border: none;
    background: transparent;
    color: var(--text-mid);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    padding: 11px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.auth-login-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(201, 162, 39, 0.28);
}

.auth-login-panel {
    display: none;
}

.auth-login-panel.active {
    display: block;
}

/* ===== FINAL OTP VERIFY DESIGN START ===== */

.auth-otp-final-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto 22px;
    padding: 34px 34px 28px;
    border-radius: 30px;
    background:
        radial-gradient(
            circle at top,
            rgba(201, 162, 39, 0.1),
            transparent 34%
        ),
        linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
    border: 1px solid rgba(201, 162, 39, 0.24);
    box-shadow:
        0 24px 70px rgba(33, 56, 38, 0.08),
        0 10px 28px rgba(201, 162, 39, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-otp-final-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 120px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 0 0 999px 999px;
    background: var(--primary);
}

.auth-otp-final-top {
    margin-bottom: 24px;
}

.auth-otp-final-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff8e6;
    border: 1.5px solid rgba(201, 162, 39, 0.34);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 12px 26px rgba(201, 162, 39, 0.14);
}

.auth-otp-final-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.15;
}

.auth-otp-final-sub {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 12px;
}

.auth-otp-final-email {
    max-width: 100%;
    width: fit-content;
    margin: 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(201, 162, 39, 0.28);
    color: var(--text-mid);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(33, 56, 38, 0.04);
}

.auth-otp-final-email i {
    color: var(--primary-dark);
    flex-shrink: 0;
}

.auth-otp-final-email span {
    overflow-wrap: anywhere;
}

.auth-otp-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    text-align: left;
    border-radius: 14px;
    padding: 11px 13px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
}

.auth-otp-alert-danger {
    background: #fff1f1;
    border: 1px solid #f1b9b9;
    color: #9f2b2b;
}

.auth-otp-code-group {
    margin-bottom: 18px;
}

.auth-otp-code-label {
    display: block;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-mid);
    margin-bottom: 9px;
    text-align: left;
}

.auth-otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.auth-otp-digit {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    border: 1.5px solid rgba(201, 162, 39, 0.38);
    background: #fff;
    color: var(--text-dark);
    outline: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.08);
    transition: all 0.22s ease;
}

.auth-otp-digit:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(201, 162, 39, 0.14),
        0 12px 24px rgba(201, 162, 39, 0.12);
    transform: translateY(-1px);
}

.auth-otp-digit.filled {
    background: #fffdf7;
    border-color: rgba(201, 162, 39, 0.65);
}

.auth-otp-boxes.has-error .auth-otp-digit {
    border-color: #c0392b;
    background: #fff9f9;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.05);
}

@media (max-width: 575.98px) {
    .auth-otp-boxes {
        gap: 8px;
    }

    .auth-otp-digit {
        height: 52px;
        border-radius: 14px;
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .auth-otp-digit {
        height: 48px;
        font-size: 18px;
    }
}

.auth-otp-final-btn {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 14px 30px rgba(201, 162, 39, 0.34);
    transition: all 0.25s ease;
    margin-bottom: 18px;
}

.auth-otp-final-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(201, 162, 39, 0.42);
}

.auth-otp-final-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-otp-final-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-otp-resend-form {
    margin: 0;
}

.auth-otp-action-btn {
    border: none;
    background: transparent;
    color: var(--primary-dark);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 850;
    cursor: pointer;
    padding: 5px 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.auth-otp-action-btn:hover {
    color: var(--secondary);
}

.auth-otp-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-otp-action-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(33, 56, 38, 0.25);
}

/* old OTP classes neutralized */
.auth-otp-verify-card,
.auth-otp-box {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.auth-otp-note,
.auth-otp-inline-success,
.auth-otp-success-icon,
.auth-otp-heading-wrap,
.auth-otp-title,
.auth-otp-sub,
.auth-otp-email-pill,
.auth-otp-main-btn,
.auth-otp-actions,
.auth-otp-text-btn,
.auth-otp-link-btn {
    all: unset;
}

/* ===== FINAL OTP VERIFY DESIGN END ===== */

@media (max-width: 420px) {
    .auth-login-tabs {
        grid-template-columns: 1fr;
        border-radius: var(--radius);
    }

    .auth-login-tab {
        border-radius: var(--radius);
    }

    .auth-otp-final-card {
        padding: 28px 18px 24px;
        border-radius: 24px;
    }

    .auth-otp-final-title {
        font-size: 1.5rem;
    }

    .auth-otp-code-input {
        height: 54px;
        font-size: 20px;
        letter-spacing: 8px;
        padding-left: 28px;
    }

    .auth-otp-code-input::placeholder {
        letter-spacing: 8px;
    }

    .auth-otp-final-email {
        width: 100%;
        border-radius: 14px;
    }

    .auth-otp-action-dot {
        display: none;
    }

    .auth-otp-final-actions {
        flex-direction: column;
        gap: 4px;
    }
}
/* ===== LOGIN METHOD TABS END ===== */

/* ===== BETTER SERVER ERROR DISPLAY START ===== */

.auth-error-summary {
    background: #fff1f1;
    border: 1.5px solid #efb5b5;
    color: #8f1f1f;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    box-shadow: 0 8px 22px rgba(192, 57, 43, 0.08);
}

.auth-error-summary-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 900;
    margin-bottom: 8px;
}

.auth-error-summary-head i {
    font-size: 15px;
    color: #b42323;
}

.auth-error-summary-list {
    margin: 0;
    padding-left: 22px;
}

.auth-error-summary-list li {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 3px;
}

.auth-error-summary-list li:last-child {
    margin-bottom: 0;
}

/* Make Laravel server-side errors visible without needing JS */
.auth-field-error:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

/* Bootstrap's is-invalid class must match your custom auth-invalid design */
.auth-input.is-invalid {
    border-color: #c0392b;
    background: #fff9f9;
}

.auth-input.is-invalid:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* OTP boxes error state */
.auth-otp-boxes.has-error .auth-otp-digit,
.auth-otp-digit.is-invalid {
    border-color: #c0392b;
    background: #fff9f9;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

/* Checkbox error support */
.auth-checkbox.is-invalid ~ .auth-checkmark {
    border-color: #c0392b;
    background: #fff9f9;
}

/* ===== BETTER SERVER ERROR DISPLAY END ===== */
