/**
 * Zuru Auth CSS
 *
 * Path:
 *   public/assets/css/auth.css
 *
 * @version 1.0.0
 * @last_updated 2026-06-26
 *
 * Purpose:
 *   Theme-independent authentication styling.
 *
 * Notes:
 *   - Used by layouts/auth.php.
 *   - Does not depend on active storefront theme CSS.
 *   - Keeps customer login/register pages stable across all themes.
 */

/* ============================================================
   RESET / TOKENS
   ============================================================ */

:root {
    --zuru-auth-bg: #f7f2ea;
    --zuru-auth-bg-soft: #fffaf4;
    --zuru-auth-surface: #ffffff;
    --zuru-auth-surface-warm: #fbf6ef;
    --zuru-auth-text: #1f1d1b;
    --zuru-auth-text-soft: #3d3731;
    --zuru-auth-muted: #766b60;
    --zuru-auth-line: rgba(31, 29, 27, 0.12);
    --zuru-auth-line-strong: rgba(31, 29, 27, 0.2);
    --zuru-auth-accent: #b27a4a;
    --zuru-auth-accent-dark: #7d4f31;
    --zuru-auth-danger-bg: #fff0f0;
    --zuru-auth-danger-text: #8a1f1f;
    --zuru-auth-danger-border: rgba(138, 31, 31, 0.22);
    --zuru-auth-radius-lg: 34px;
    --zuru-auth-radius-md: 22px;
    --zuru-auth-radius-sm: 14px;
    --zuru-auth-shadow: 0 28px 90px rgba(31, 29, 27, 0.12);
    --zuru-auth-shadow-soft: 0 18px 50px rgba(31, 29, 27, 0.08);
    --zuru-auth-font-sans: "Inter", Arial, sans-serif;
    --zuru-auth-font-serif: "Cormorant Garamond", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.zuru-auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--zuru-auth-text);
    background:
        radial-gradient(circle at 10% 10%, rgba(178, 122, 74, 0.18), transparent 30rem),
        radial-gradient(circle at 92% 10%, rgba(31, 29, 27, 0.08), transparent 28rem),
        linear-gradient(145deg, var(--zuru-auth-bg), var(--zuru-auth-bg-soft));
    font-family: var(--zuru-auth-font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body.zuru-auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-image:
        linear-gradient(90deg, rgba(31, 29, 27, 0.18) 1px, transparent 1px),
        linear-gradient(rgba(31, 29, 27, 0.18) 1px, transparent 1px);
    background-size: 42px 42px;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

/* ============================================================
   AUTH LAYOUT
   ============================================================ */

.zuru-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.zuru-auth-shell {
    width: min(1120px, 100%);
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(31, 29, 27, 0.1);
    border-radius: var(--zuru-auth-radius-lg);
    box-shadow: var(--zuru-auth-shadow);
    backdrop-filter: blur(18px);
}

.zuru-auth-brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 5vw, 58px);
    color: #fffaf4;
    background:
        radial-gradient(circle at 24% 20%, rgba(178, 122, 74, 0.24), transparent 28%),
        radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(145deg, #1f1d1b, #383027);
}

.zuru-auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255, 250, 244, 0.14);
    border-radius: calc(var(--zuru-auth-radius-lg) - 16px);
    pointer-events: none;
}

.zuru-auth-brand-panel::after {
    content: "✦";
    position: absolute;
    right: 44px;
    bottom: 42px;
    color: rgba(255, 250, 244, 0.2);
    font-size: 28px;
}

.zuru-auth-brand {
    position: relative;
    z-index: 1;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fffaf4;
    text-decoration: none;
}

.zuru-auth-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #1f1d1b;
    background: #fffaf4;
    border-radius: 999px;
    font-family: var(--zuru-auth-font-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.zuru-auth-brand-text {
    color: #fffaf4;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.zuru-auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.zuru-auth-eyebrow {
    margin: 0 0 14px;
    color: #d9bd87;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.zuru-auth-brand-copy h1 {
    margin: 0;
    color: #fffaf4;
    font-family: var(--zuru-auth-font-serif);
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.zuru-auth-brand-copy p:last-child {
    margin: 20px 0 0;
    color: rgba(255, 250, 244, 0.68);
    font-size: 0.98rem;
    line-height: 1.75;
}

.zuru-auth-trust-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    color: rgba(255, 250, 244, 0.7);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zuru-auth-trust-list span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zuru-auth-trust-list span::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: #d9bd87;
    border-radius: 999px;
}

.zuru-auth-content-panel {
    display: grid;
    align-items: center;
    padding: clamp(28px, 5vw, 58px);
    background:
        radial-gradient(circle at top right, rgba(178, 122, 74, 0.08), transparent 18rem),
        var(--zuru-auth-surface);
}

/* ============================================================
   AUTH CARD
   ============================================================ */

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

.zuru-auth-card-header {
    margin-bottom: 28px;
}

.zuru-auth-card-kicker {
    margin: 0 0 10px;
    color: var(--zuru-auth-accent-dark);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.zuru-auth-card-title {
    margin: 0;
    color: var(--zuru-auth-text);
    font-family: var(--zuru-auth-font-serif);
    font-size: clamp(2.25rem, 4vw, 3.35rem);
    font-weight: 650;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.zuru-auth-card-copy {
    margin: 14px 0 0;
    color: var(--zuru-auth-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

/* ============================================================
   ALERTS
   ============================================================ */

.zuru-auth-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    color: var(--zuru-auth-danger-text);
    background: var(--zuru-auth-danger-bg);
    border: 1px solid var(--zuru-auth-danger-border);
    border-radius: var(--zuru-auth-radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
}

/* ============================================================
   FORMS
   ============================================================ */

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

.zuru-auth-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.zuru-auth-field {
    display: grid;
    gap: 7px;
}

.zuru-auth-field label,
.zuru-auth-checkbox label {
    color: var(--zuru-auth-text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.zuru-auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--zuru-auth-text);
    background: var(--zuru-auth-surface-warm);
    border: 1px solid var(--zuru-auth-line);
    border-radius: var(--zuru-auth-radius-sm);
    outline: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.zuru-auth-field input:focus {
    background: #ffffff;
    border-color: var(--zuru-auth-accent);
    box-shadow: 0 0 0 4px rgba(178, 122, 74, 0.14);
}

.zuru-auth-field small {
    color: var(--zuru-auth-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.zuru-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
}

.zuru-auth-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--zuru-auth-accent);
}

.zuru-auth-checkbox label {
    color: var(--zuru-auth-muted);
    line-height: 1.5;
}

.zuru-auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 14px 18px;
    color: #ffffff;
    background: var(--zuru-auth-text);
    border: 1px solid var(--zuru-auth-text);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.zuru-auth-submit:hover {
    background: var(--zuru-auth-accent-dark);
    border-color: var(--zuru-auth-accent-dark);
    box-shadow: var(--zuru-auth-shadow-soft);
    transform: translateY(-1px);
}

.zuru-auth-submit:focus-visible,
.zuru-auth-link:focus-visible,
.zuru-auth-brand:focus-visible,
.zuru-auth-field input:focus-visible {
    outline: 2px solid var(--zuru-auth-accent);
    outline-offset: 3px;
}

/* ============================================================
   LINKS
   ============================================================ */

.zuru-auth-links {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--zuru-auth-line);
    text-align: center;
}

.zuru-auth-links p {
    margin: 0;
    color: var(--zuru-auth-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.zuru-auth-link {
    color: var(--zuru-auth-accent-dark);
    font-weight: 900;
    text-decoration: none;
}

.zuru-auth-link:hover {
    color: var(--zuru-auth-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 920px) {
    .zuru-auth-page {
        padding: 20px;
    }

    .zuru-auth-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .zuru-auth-brand-panel {
        min-height: 360px;
    }

    .zuru-auth-content-panel {
        padding: 34px 24px 40px;
    }
}

@media (max-width: 640px) {
    .zuru-auth-page {
        align-items: start;
        padding: 12px;
    }

    .zuru-auth-shell {
        border-radius: 24px;
    }

    .zuru-auth-brand-panel {
        min-height: auto;
        padding: 28px 24px;
    }

    .zuru-auth-brand-copy {
        margin: 54px 0 40px;
    }

    .zuru-auth-brand-copy h1 {
        font-size: 2.55rem;
    }

    .zuru-auth-brand-copy p:last-child {
        font-size: 0.92rem;
    }

    .zuru-auth-trust-list {
        font-size: 0.68rem;
    }

    .zuru-auth-card-title {
        font-size: 2.25rem;
    }

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

@media (max-width: 420px) {
    .zuru-auth-content-panel {
        padding: 28px 18px 34px;
    }

    .zuru-auth-brand-panel {
        padding: 24px 20px;
    }

    .zuru-auth-brand-text {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .zuru-auth-brand-copy h1 {
        font-size: 2.25rem;
    }
}/* ============================================================
   AUTH BATCH 2 ADDITIONS
   Password recovery / reset states
   @version 1.1.0
   ============================================================ */

.zuru-auth-alert-success {
    color: #245b37;
    background: #eef9f1;
    border-color: rgba(36, 91, 55, 0.22);
}

.zuru-auth-inline-link {
    margin-top: -4px;
    text-align: right;
}

.zuru-auth-inline-link .zuru-auth-link {
    font-size: 0.85rem;
}