@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap");

/* ==========================================================================
   Auth 2026 — clean minimalist design system
   Scoped entirely under .auth2026 so it never touches other pages
   (e.g. page/calculator/*) that also load header.auth.php
   ========================================================================== */

html,
body.login {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
}

.auth2026 {
    --a-primary: var(--yellow-primary);
    --a-primary-hover: var(--yellow-primary);
    --a-primary-soft: color-mix(in srgb, var(--yellow-primary) 12%, var(--white));
    --a-panel: var(--dark-blue);
    --a-panel-line: rgba(255, 255, 255, 0.08);
    --a-bg: var(--bg-body);
    --a-surface: var(--white);
    --a-border: var(--dark-grey);
    --a-text: var(--black);
    --a-muted: var(--black-text);
    --a-danger: #DC2626;
    --a-radius: 14px;
    --a-radius-lg: 22px;
    font-family: "Inter", sans-serif;
    color: var(--a-text);
}

.auth2026 * {
    box-sizing: border-box;
}

.auth2026 .auth2026-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(320px, 34vw) 1fr;
    background: var(--a-bg);
}

@media (min-width: 1440px) {
    .auth2026 .auth2026-shell {
        grid-template-columns: minmax(320px, 480px) 1fr;
    }
}

/* -------- Left brand panel -------- */
.auth2026 .auth2026-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 48px) clamp(24px, 4vw, 44px);
    background: var(--a-panel);
    color: #fff;
    overflow: hidden;
}

.auth2026 .auth2026-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--a-panel-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--a-panel-line) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%);
    mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%);
    pointer-events: none;
}

.auth2026 .auth2026-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.auth2026 .auth2026-brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--yellow-primary);
}

.auth2026 .auth2026-panel-copy {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.auth2026 .auth2026-panel-copy h2 {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.auth2026 .auth2026-panel-copy p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.auth2026 .auth2026-panel-foot {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* -------- Right form side -------- */
.auth2026 .auth2026-form-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(clamp(56px, 10vw, 72px) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(clamp(28px, 5vw, 40px) + env(safe-area-inset-bottom, 0px));
    padding-left: calc(clamp(18px, 5vw, 40px) + env(safe-area-inset-left, 0px));
    padding-right: calc(clamp(18px, 5vw, 40px) + env(safe-area-inset-right, 0px));
    min-height: 100vh;
    min-height: 100dvh;
}

.auth2026 .auth2026-back {
    position: absolute;
    top: max(20px, env(safe-area-inset-top, 0px));
    left: max(20px, env(safe-area-inset-left, 0px));
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    color: var(--a-text);
    font-size: 18px;
    transition: background 0.15s ease, border-color 0.15s ease;
    z-index: 2;
}

.auth2026 .auth2026-back:hover {
    background: var(--a-bg);
    border-color: #d4d4d8;
    color: var(--a-text);
}

.auth2026 .auth2026-mobile-brand {
    display: none;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 18px;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--a-text);
}

.auth2026 .auth2026-mobile-brand .dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--a-primary);
}

.auth2026 .auth2026-card {
    width: 100%;
    max-width: 380px;
    margin: auto 0;
}

.auth2026 .auth2026-card h1 {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: clamp(21px, 5vw, 26px);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--a-text);
}

.auth2026 .auth2026-card .auth2026-sub {
    font-size: 13.5px;
    color: var(--a-muted);
    margin-bottom: clamp(20px, 5vw, 28px);
    line-height: 1.5;
}

/* -------- Fields -------- */
.auth2026 .auth2026-field {
    position: relative;
    margin-bottom: 14px;
}

.auth2026 .auth2026-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--a-text);
    margin-bottom: 6px;
}

.auth2026 .auth2026-field .form-control,
.auth2026 .auth2026-field input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 14.5px;
    font-family: "Inter", sans-serif;
    color: var(--a-text);
    background: var(--a-surface);
    border: 1.5px solid var(--a-border);
    border-radius: var(--a-radius);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth2026 .auth2026-field .form-control::placeholder {
    color: #A1A1AA;
}

.auth2026 .auth2026-field .form-control:focus {
    border-color: var(--a-primary);
    box-shadow: 0 0 0 3px var(--a-primary-soft);
}

.auth2026 .auth2026-field-icon {
    position: absolute;
    top: 38px;
    right: 16px;
    background: none;
    border: none;
    padding: 0;
    color: var(--a-muted);
    cursor: pointer;
    font-size: 15px;
}

.auth2026 .auth2026-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* -------- Buttons -------- */
.auth2026 .auth2026-btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--a-radius);
    background: var(--a-primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 14.5px;
    border: none;
    outline: none;
    transition: background 0.15s ease, transform 0.05s ease;
}

.auth2026 .auth2026-btn:hover {
    filter: brightness(0.92);
    color: #fff;
}

.auth2026 .auth2026-btn:active {
    transform: scale(0.99);
}

.auth2026 .auth2026-btn-ghost {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--a-radius);
    background: var(--a-surface);
    color: var(--a-text) !important;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid var(--a-border);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth2026 .auth2026-btn-ghost:hover {
    background: var(--a-bg);
    color: var(--a-text);
}

.auth2026 .auth2026-btn-ghost img {
    width: 18px;
    height: 18px;
}

.auth2026 .auth2026-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--a-muted);
    font-size: 12px;
}

.auth2026 .auth2026-divider::before,
.auth2026 .auth2026-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--a-border);
}

/* -------- Links / footer text -------- */
.auth2026 .auth2026-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 18px 0;
    font-size: 13.5px;
    color: var(--a-muted);
}

.auth2026 .auth2026-links a {
    color: var(--a-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth2026 .auth2026-links a:hover {
    text-decoration: underline;
}

.auth2026 .auth2026-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 18px;
    font-size: 13px;
    color: var(--a-muted);
}

.auth2026 .auth2026-terms input {
    margin-top: 3px;
    accent-color: var(--a-primary);
}

.auth2026 .auth2026-terms a {
    color: var(--a-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth2026 .auth2026-otp-note {
    font-size: 13px;
    color: var(--a-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

.auth2026 .auth2026-actions-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.auth2026 .cf-turnstile {
    margin: 4px 0 6px;
    max-width: 100%;
    overflow: hidden;
}

.auth2026 .cf-turnstile iframe {
    max-width: 100%;
}

/* -------- Responsive -------- */

/* Tablet & below: brand panel becomes a compact top bar, form takes full width */
@media (max-width: 991.98px) {
    .auth2026 .auth2026-shell {
        grid-template-columns: 1fr;
    }

    .auth2026 .auth2026-panel {
        display: none;
    }

    .auth2026 .auth2026-mobile-brand {
        display: flex;
    }
}

/* Small tablets / large phones in landscape: cap card width, center vertically again */
@media (min-width: 576px) and (max-width: 991.98px) {
    .auth2026 .auth2026-card {
        max-width: 420px;
    }
}

/* Phones */
@media (max-width: 575.98px) {
    .auth2026 .auth2026-mobile-brand {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .auth2026 .auth2026-field .form-control,
    .auth2026 .auth2026-field input {
        height: 46px;
        font-size: 14px;
    }

    .auth2026 .auth2026-btn,
    .auth2026 .auth2026-btn-ghost {
        height: 46px;
        font-size: 14px;
    }

    .auth2026 .auth2026-field-icon {
        top: 34px;
    }
}

/* Narrow phones: stack two-column rows so nothing gets cramped */
@media (max-width: 420px) {
    .auth2026 .auth2026-row-2,
    .auth2026 .auth2026-actions-2 {
        grid-template-columns: 1fr;
    }
}

/* Very short viewports (landscape phones): trim vertical rhythm so the form fits without excess scroll */
@media (max-height: 560px) and (max-width: 991.98px) {
    .auth2026 .auth2026-form-side {
        justify-content: flex-start;
    }

    .auth2026 .auth2026-mobile-brand {
        margin-bottom: 16px;
    }

    .auth2026 .auth2026-card .auth2026-sub {
        margin-bottom: 16px;
    }

    .auth2026 .auth2026-field {
        margin-bottom: 10px;
    }
}