/* =========================================================
   KANU VIVAH — AUTHENTICATION
   Login + Register
   ========================================================= */

.auth-page,
.auth-section {
    width: 100%;
}

.auth-page {
    min-height: 100vh;
    padding: 150px 0 90px;
    background: var(--kv-ivory);
}

/* Registration page uses .auth-section directly.
   Keep content clear of the fixed header. */
.auth-section {
    padding: 125px 0 90px;
    background: var(--kv-ivory);
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-page .auth-section {
    display: flex;
    align-items: center;
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {
    width: 100%;
    max-width: 520px;

    margin: 0 auto;

    padding: 48px;

    background: #ffffff;

    border: 1px solid var(--kv-border-light);
    border-radius: var(--kv-radius-xl);

    box-shadow: var(--kv-shadow-lg);
}

.auth-card h1,
.auth-card h2,
.auth-card h3 {
    margin-top: 0;

    font-family: var(--kv-font-display);
    font-weight: 400;
    color: var(--kv-charcoal);
}

.auth-card h1 {
    margin-bottom: 14px;

    font-size: 38px;
    line-height: 1.15;
}

.auth-card h3 {
    margin-bottom: 12px;

    font-size: 27px;
}

.auth-card-header > p,
.auth-card > p,
.auth-card .sub {
    color: #6f625e;

    line-height: 1.7;
}


/* =========================================================
   FORMS
   ========================================================= */

.auth-form,
.auth-card form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form-group,
.field-group {
    width: 100%;
}

.auth-card label {
    display: block;

    margin-bottom: 8px;

    color: var(--kv-charcoal);

    font-size: 13px;
    font-weight: 600;
}

.auth-card input,
.auth-card textarea,
.auth-card select {
    width: 100%;

    min-height: 50px;

    padding: 12px 15px;

    border: 1px solid #d9d1cc;
    border-radius: 10px;

    background: #ffffff;

    color: var(--kv-charcoal);

    outline: none;
}

.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus {
    border-color: var(--kv-pink);

    box-shadow:
        0 0 0 3px rgba(228, 0, 120, .08);
}


/* =========================================================
   MOBILE NUMBER
   ========================================================= */

.mobile-input,
.mobile-input-row {
    display: grid;

    grid-template-columns: 78px 1fr;

    gap: 10px;
}

.country-code {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 12px;

    border: 1px solid #d9d1cc;
    border-radius: 10px;

    background: #f5f0ec;

    color: #6f625e;

    font-weight: 600;
}


/* =========================================================
   REGISTER LAYOUT
   ========================================================= */

.auth-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 520px);

    gap: 80px;

    align-items: center;
}

.auth-side {
    max-width: 620px;
}

.eyebrow-mark {
    margin-bottom: 15px;

    color: var(--kv-copper);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .15em;
    text-transform: uppercase;
}

.auth-side h2 {
    margin: 0 0 20px;

    font-family: var(--kv-font-display);

    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
}

.auth-side > p {
    max-width: 560px;

    color: #6f625e;

    font-size: 17px;
    line-height: 1.75;
}

.auth-points {
    margin: 30px 0 0;
    padding: 0;

    list-style: none;
}

.auth-points li {
    position: relative;

    padding-left: 24px;

    color: #574943;

    line-height: 1.7;
}

.auth-points li + li {
    margin-top: 12px;
}

.auth-points li::before {
    content: "✓";

    position: absolute;
    left: 0;

    color: var(--kv-copper);

    font-weight: 700;
}


/* =========================================================
   OTP
   ========================================================= */

.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
}

.otp-boxes {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 8px;

    margin: 25px 0;
}

.otp-boxes input {
    width: 100%;

    min-height: 58px;

    padding: 0;

    text-align: center;

    font-size: 22px;
    font-weight: 600;
}

.otp-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;

    color: #786d67;

    font-size: 13px;
}

.resend {
    color: var(--kv-pink);

    font-weight: 600;

    cursor: pointer;
}

.resend.disabled {
    opacity: .45;
    cursor: default;
}

.form-error {
    display: none;

    margin: 10px 0;

    color: #a33d2d;

    font-size: 13px;
}

.form-error.show {
    display: block;
}


/* =========================================================
   FOOTER LINKS
   ========================================================= */

.auth-card-footer {
    margin-top: 28px;

    text-align: center;

    color: #6f625e;
}

.auth-card-footer a,
.auth-foot-note a {
    color: var(--kv-pink);

    font-weight: 600;
}

.auth-foot-note {
    margin: 22px 0 0;

    text-align: center;

    color: #6f625e;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .auth-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .auth-side {
        max-width: 700px;
    }

}

@media (max-width: 640px) {
    .auth-page {
        padding: 120px 0 60px;
    }

    .auth-section {
        padding: 110px 0 60px;
    }

    .auth-card {
        padding: 32px 24px;

        border-radius: 18px;
    }

    .auth-card h1 {
        font-size: 32px;
    }

    .auth-grid {
        gap: 30px;
    }

    .otp-boxes {
        gap: 5px;
    }

    .otp-boxes input {
        min-height: 52px;
    }

}

.form-success {
    display: none;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.form-success.show {
    display: block;
}

/* =========================================================
   Kanu Vivah — Email Login
   ========================================================= */

.auth-form .form-group input[type="email"],
.auth-form .form-group input[type="password"] {
    width: 100%;
    box-sizing: border-box;
}

.auth-forgot {
    margin-top: -8px;
    margin-bottom: 20px;
    text-align: right;
}

.auth-forgot a {
    color: #d90072;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-message {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-message--error {
    background: #fff1f1;
    border: 1px solid #f0cccc;
    color: #8f1d1d;
}

.auth-message--success {
    background: #f1faf4;
    border: 1px solid #c9e7d2;
    color: #246b3a;
}