/* LaraChat — authentication screens
   Product branding, split-panel layout, no external fonts required. */

:root {
    --lc-brand: #4f46e5;
    --lc-brand-600: #4338ca;
    --lc-brand-700: #3730a3;
    --lc-ink: #0f172a;
    --lc-ink-soft: #475569;
    --lc-muted: #94a3b8;
    --lc-line: #e2e8f0;
    --lc-bg: #f6f7fb;
    --lc-surface: #ffffff;
    --lc-danger: #dc2626;
    --lc-success: #059669;
    --lc-radius: 14px;
    --lc-shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.35);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.lc-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, "Apple Color Emoji", sans-serif;
    color: var(--lc-ink);
    background: var(--lc-bg);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* ---- Brand panel ---- */
.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    color: #fff;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255,255,255,0.16), transparent 55%),
        radial-gradient(900px 500px at 100% 110%, rgba(255,255,255,0.10), transparent 50%),
        linear-gradient(155deg, var(--lc-brand-700) 0%, var(--lc-brand) 60%, #6366f1 100%);
    overflow: hidden;
}

.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 30% 20%, #000, transparent 70%);
    pointer-events: none;
}

.auth-brand-inner { position: relative; z-index: 1; max-width: 480px; margin-top: 8vh; }

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.auth-logo-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 15px;
}

.auth-logo-word { font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }

.auth-brand-title {
    font-size: 34px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin: 0 0 18px;
}

.auth-brand-sub {
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
    margin: 0 0 28px;
}

.auth-brand-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-brand-points li {
    position: relative;
    padding-left: 28px;
    font-size: 14.5px;
    color: rgba(255,255,255,0.9);
}
.auth-brand-points li::before {
    content: "";
    position: absolute;
    left: 0; top: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: inset 0 0 0 2px var(--lc-brand);
}

.auth-brand-foot {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    color: rgba(255,255,255,0.65);
}

/* ---- Form panel ---- */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--lc-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--lc-surface);
    border: 1px solid var(--lc-line);
    border-radius: var(--lc-radius);
    box-shadow: var(--lc-shadow);
    padding: 40px 40px 32px;
}

.auth-card-head { margin-bottom: 26px; }
.auth-card-head h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
}
.auth-card-head p { margin: 0; color: var(--lc-ink-soft); font-size: 14.5px; }

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

.auth-field { display: grid; gap: 7px; }
.auth-label { font-size: 13px; font-weight: 600; color: var(--lc-ink); }
.auth-optional { font-weight: 400; color: var(--lc-muted); }

.auth-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14.5px;
    color: var(--lc-ink);
    background: #fbfcfe;
    border: 1px solid var(--lc-line);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    outline: none;
}
.auth-input::placeholder { color: var(--lc-muted); }
.auth-input:hover { border-color: #cbd5e1; }
.auth-input:focus {
    border-color: var(--lc-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.auth-input.is-invalid {
    border-color: var(--lc-danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.auth-field-error { color: var(--lc-danger); font-size: 12.5px; }

.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--lc-ink-soft);
    cursor: pointer;
    user-select: none;
}
.auth-check input {
    width: 16px; height: 16px;
    accent-color: var(--lc-brand);
    cursor: pointer;
}

.auth-link {
    color: var(--lc-brand);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}
.auth-link:hover { color: var(--lc-brand-700); text-decoration: underline; }

.auth-btn {
    width: 100%;
    padding: 13px 16px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--lc-brand);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
    box-shadow: 0 8px 20px -10px rgba(79, 70, 229, 0.9);
}
.auth-btn:hover { background: var(--lc-brand-600); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:focus-visible { outline: 3px solid rgba(79, 70, 229, 0.35); outline-offset: 2px; }

.auth-card-foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--lc-line);
    text-align: center;
    font-size: 13.5px;
    color: var(--lc-ink-soft);
}

.auth-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.4;
}
.auth-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.auth-alert-success {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-panel { min-height: 100vh; }
}

@media (max-width: 460px) {
    .auth-card { padding: 28px 22px 24px; border-radius: 12px; }
    .auth-grid-2 { grid-template-columns: 1fr; }
}
