/* ════════════════════════════════════════════════════════════════════
   Kawa Studio — Auth CSS
   Brand: beige (#C9AE82) + ink (#1b1b1b) + olive (#54553e)
   Font:  Figtree (Google Fonts)
══════════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
    --beige-50:  #FBF7F0;
    --beige-100: #F4EBDB;
    --beige-200: #E9D9BD;
    --beige-300: #DAC4A0;
    --beige-400: #C9AE82;
    --beige-500: #B8966A;
    --beige-600: #9C7B52;
    --ink:       #1b1b1b;
    --ink-700:   #313131;
    --ink-600:   #414141;
    --warm:      #8C857A;
    --olive:     #54553e;
    --brand-gradient: linear-gradient(135deg, #C9AE82, #54553e);
    --focus-ring: 0 0 0 3px rgba(201, 174, 130, .22);
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--ink);
    background: #fff;
}

/* ── Shell ───────────────────────────────────────────────────────── */
.kawa-shell {
    display: flex;
    min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════════
   LEFT BRAND PANEL
══════════════════════════════════════════════════════════════════════ */
.kawa-brand {
    display: none;
    width: 400px;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--ink);
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px)  { .kawa-brand { display: flex; } }
@media (min-width: 1280px) { .kawa-brand { width: 460px; } }

/* Subtle grid texture */
.kawa-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 174, 130, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 174, 130, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Radial depth glows */
.kawa-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(201, 174, 130, .10) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 75%, rgba(84, 85, 62, .18)    0%, transparent 55%);
    pointer-events: none;
}

/* Oversized watermark */
.kawa-brand__watermark {
    position: absolute;
    bottom: -10px;
    right: -20px;
    font-size: clamp(130px, 16vw, 200px);
    font-weight: 900;
    line-height: 1;
    color: var(--beige-400);
    opacity: .04;
    user-select: none;
    pointer-events: none;
    letter-spacing: -.05em;
}

/* Zones */
.kawa-brand__top,
.kawa-brand__center,
.kawa-brand__bottom { position: relative; z-index: 2; padding: 2.5rem; }

/* Logo lockup */
.kawa-logo-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.kawa-logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(201, 174, 130, .3);
    background: rgba(201, 174, 130, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.kawa-logo-link:hover .kawa-logo-icon { background: rgba(201, 174, 130, .2); }

.kawa-logo-name {
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .04em;
}

/* Eyebrow label */
.kawa-eyebrow {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 2rem;
}

.kawa-eyebrow__line {
    width: 2rem;
    height: 1px;
    background: var(--beige-400);
    flex-shrink: 0;
}

.kawa-eyebrow__text {
    color: var(--beige-400);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* Editorial quote */
.kawa-quote {
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
    margin: 0 0 1.5rem;
}

.kawa-location {
    color: var(--warm);
    font-size: .8125rem;
    line-height: 1.7;
    margin: 0;
}

/* Bottom brand badge */
.kawa-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem 1rem;
    border-radius: 80px;
    background: var(--brand-gradient);
    color: var(--ink);
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: .875rem;
}

.kawa-copyright {
    color: var(--ink-600);
    font-size: .6875rem;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════════
   RIGHT FORM PANEL
══════════════════════════════════════════════════════════════════════ */
.kawa-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: #fff;
}

@media (min-width: 768px) { .kawa-form-panel { padding: 3rem 3rem; } }

/* Entrance animation */
.kawa-form-inner {
    width: 100%;
    max-width: 360px;
    animation: kawa-fade-up .4s ease both;
}

@keyframes kawa-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@media (prefers-reduced-motion: reduce) {
    .kawa-form-inner { animation: none; }
}

/* Mobile logo */
.kawa-mobile-logo {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    margin-bottom: 2.5rem;
}

@media (min-width: 992px) { .kawa-mobile-logo { display: none; } }

.kawa-mobile-logo__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(201, 174, 130, .4);
    background: rgba(201, 174, 130, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kawa-mobile-logo__name {
    color: var(--ink);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .04em;
}

/* Page heading */
.kawa-page-heading { margin-bottom: 2rem; }

.kawa-page-heading h1 {
    color: var(--ink);
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -.025em;
    margin: 0 0 .375rem;
    line-height: 1.2;
}

.kawa-page-heading p {
    color: var(--warm);
    font-size: .875rem;
    margin: 0;
    line-height: 1.6;
}

/* Icon accent badge (forgot / reset pages) */
.kawa-icon-badge {
    width: 3rem;
    height: 3rem;
    border-radius: .875rem;
    border: 1px solid rgba(201, 174, 130, .2);
    background: rgba(201, 174, 130, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* ── Form controls ───────────────────────────────────────────────── */
.kawa-field { margin-bottom: 1.25rem; }

.kawa-label {
    display: block;
    font-size: .6875rem;
    font-weight: 700;
    color: var(--warm);
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: .5rem;
}

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

.kawa-input {
    display: block;
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid var(--beige-300);
    border-radius: .75rem;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.5;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
}

.kawa-input::placeholder { color: var(--beige-200); }

.kawa-input:focus {
    border-color: var(--beige-400);
    box-shadow: var(--focus-ring);
}

.kawa-input--has-icon { padding-right: 3rem; }

/* Password eye toggle */
.kawa-eye-btn {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: .3rem;
    cursor: pointer;
    color: var(--warm);
    display: flex;
    align-items: center;
    line-height: 1;
    transition: color .15s;
}

.kawa-eye-btn:hover  { color: var(--ink); }
.kawa-eye-btn:focus  { outline: 2px solid var(--beige-400); border-radius: .25rem; }

/* ── Remember / forgot row ───────────────────────────────────────── */
.kawa-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.kawa-check-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    font-size: .875rem;
    color: var(--warm);
    user-select: none;
    transition: color .15s;
}

.kawa-check-label:hover { color: var(--ink); }

.kawa-check-input {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--beige-300);
    border-radius: .25rem;
    accent-color: var(--beige-400);
    cursor: pointer;
    flex-shrink: 0;
}

.kawa-check-input:focus { outline: 2px solid var(--beige-400); outline-offset: 2px; }

.kawa-forgot-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--warm);
    text-decoration: none;
    transition: color .15s;
}

.kawa-forgot-link:hover { color: var(--beige-400); }

/* ── Primary button ──────────────────────────────────────────────── */
.kawa-btn {
    display: block;
    width: 100%;
    padding: .9rem 1.5rem;
    border: none;
    border-radius: 80px;
    background: var(--beige-400);
    color: var(--ink);
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    text-align: center;
    transition: background .25s ease, box-shadow .25s ease, transform .12s ease;
}

.kawa-btn:hover:not(:disabled) {
    background: var(--beige-500);
    box-shadow: 0 4px 16px rgba(201, 174, 130, .35);
}

.kawa-btn:active:not(:disabled) { transform: scale(.985); }

.kawa-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.kawa-btn:focus-visible {
    outline: 2px solid var(--beige-400);
    outline-offset: 3px;
}

/* ── Back navigation link ────────────────────────────────────────── */
.kawa-back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--warm);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color .15s;
}

.kawa-back-link:hover { color: var(--ink); }

/* ── Alert / status blocks ───────────────────────────────────────── */
.kawa-alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .875rem 1rem;
    border-radius: .75rem;
    margin-bottom: 1.25rem;
    font-size: .875rem;
    line-height: 1.55;
}

.kawa-alert svg { flex-shrink: 0; margin-top: .1rem; }

.kawa-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.kawa-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ── Panel footer ────────────────────────────────────────────────── */
.kawa-form-footer {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--warm);
    font-size: .7rem;
}
