/* ============================================================
   NatterFly AUTHENTICATION PAGES
============================================================ */

.auth-page {
    min-height: calc(100vh - 210px);
    background:
        linear-gradient(
            135deg,
            rgba(6, 74, 99, 0.96),
            rgba(8, 123, 159, 0.88)
        );
}

.auth-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 76px;
}

.auth-hero::before,
.auth-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-hero::before {
    top: -190px;
    right: -130px;
    width: 520px;
    height: 520px;
}

.auth-hero::after {
    bottom: -260px;
    left: -160px;
    width: 600px;
    height: 600px;
}

.auth-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 560px);
    gap: 64px;
    align-items: center;
}

.auth-intro {
    color: #ffffff;
}

.auth-intro .section-kicker {
    color: #b9e7f4;
}

.auth-intro h1 {
    max-width: 650px;
    margin: 10px 0 18px;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
}

.auth-intro > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.75;
}

.auth-benefits {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.auth-benefits > div {
    display: flex;
    gap: 13px;
    align-items: center;
    color: rgba(255, 255, 255, 0.92);
}

.auth-benefits i {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-card {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
}

.auth-card-heading {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.auth-heading-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 3px;
    background: var(--surface-muted);
    color: var(--header-light);
    font-size: 1.15rem;
}

.auth-card-heading span {
    color: var(--header-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card-heading h2 {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 1.65rem;
}

.auth-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 3px;
    line-height: 1.55;
}

.auth-alert-error {
    border-color: #efb2ad;
    background: #fff3f2;
    color: #8a241c;
}

[data-theme="dark"] .auth-alert-error {
    border-color: #7b4848;
    background: #3a2020;
    color: #efb1b1;
}

.auth-alert i {
    margin-top: 4px;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-form-group {
    min-width: 0;
}

.auth-form-group > label,
.auth-label-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.auth-form-group small {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-label-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.auth-label-row a {
    margin-bottom: 8px;
    color: var(--header-light);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: var(--text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    min-height: 50px;
    padding: 10px 46px 10px 44px;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.auth-input-wrap input:focus {
    border-color: var(--header-light);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(8, 123, 159, 0.13);
}

.auth-input-wrap input::placeholder {
    color: var(--text-muted);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    color: var(--header-light);
}

.auth-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text);
    cursor: pointer;
    line-height: 1.55;
}

.auth-checkbox input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: var(--header-light);
}

.auth-checkbox a {
    color: var(--header-light);
    font-weight: 700;
}

.auth-submit,
.auth-secondary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
}

.auth-switch {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.auth-switch > span {
    color: var(--text);
    font-size: 1.03rem;
    font-weight: 800;
}

.auth-switch p {
    margin: 7px 0 16px;
    color: var(--text-muted);
    line-height: 1.55;
}

.natterfly-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

[data-theme="dark"] .auth-card {
    border-color: var(--border-dark);
}

[data-theme="dark"] .auth-heading-icon {
    background: var(--accent-soft);
    color: #72c8e3;
}

@media (max-width: 980px) {
    .auth-hero {
        padding: 45px 0 58px;
    }

    .auth-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .auth-intro {
        text-align: center;
    }

    .auth-intro h1,
    .auth-intro > p {
        margin-right: auto;
        margin-left: auto;
    }

    .auth-benefits {
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .auth-card {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
    }
}

@media (max-width: 620px) {
    .auth-hero {
        padding: 28px 0 42px;
    }

    .auth-intro h1 {
        font-size: 2.15rem;
    }

    .auth-intro > p {
        font-size: 1rem;
    }

    .auth-card {
        padding: 23px 19px;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .auth-label-row {
        align-items: flex-start;
    }
}