/* =============================================
   AUTH PAGES — staff.taur.local
   Split layout: brand panel left, form right
   ============================================= */

@import url('https://fonts.bunny.net/css?family=outfit:300,400,500,600,700&display=swap');

:root {
    --auth-accent:       #10b981;
    --auth-accent-dark:  #059669;
    --auth-accent-glow:  rgba(16, 185, 129, 0.25);
    --auth-panel-bg:     #0f1a14;
    --auth-panel-mid:    #162619;
    --auth-form-bg:      #ffffff;
    --auth-text:         #1a2e22;
    --auth-muted:        #6b7280;
    --auth-border:       #d1d5db;
    --auth-input-focus:  rgba(16, 185, 129, 0.18);
    --auth-error:        #ef4444;
    --auth-font:         'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: var(--auth-font);
}

/* ── Layout ─────────────────────────────────── */
.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── Brand panel (left) ──────────────────────── */
.auth-brand {
    position: relative;
    background: var(--auth-panel-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    overflow: hidden;
}

/* Geometric grid pattern */
.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16,185,129,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,185,129,.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Radial glow */
.auth-brand::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(16,185,129,.18) 0%, transparent 70%);
    pointer-events: none;
}

.brand-top {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 3.5rem;
    text-decoration: none;
}

.brand-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--auth-accent);
    border-radius: .625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.brand-logo-text {
    line-height: 1.15;
}

.brand-logo-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}

.brand-logo-sub {
    font-size: .75rem;
    color: #52856a;
    font-weight: 400;
}

/* Large heading */
.brand-heading {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.brand-heading em {
    font-style: normal;
    color: var(--auth-accent);
}

.brand-desc {
    font-size: .95rem;
    color: #5a8a6e;
    line-height: 1.65;
    max-width: 340px;
}

/* Feature pills */
.brand-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 2.5rem;
}

.brand-feat {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.brand-feat-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--auth-accent);
    flex-shrink: 0;
}

.brand-feat span {
    font-size: .875rem;
    color: #4a7a5e;
}

/* Bottom meta */
.brand-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.brand-bottom-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.08);
}

.brand-bottom-text {
    font-size: .75rem;
    color: #3a5a46;
    white-space: nowrap;
}

/* Decorative circles */
.brand-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(16,185,129,.12);
    pointer-events: none;
}
.brand-circle-1 {
    width: 320px; height: 320px;
    bottom: -80px; right: -80px;
}
.brand-circle-2 {
    width: 200px; height: 200px;
    bottom: 60px; right: 40px;
}
.brand-circle-3 {
    width: 100px; height: 100px;
    bottom: 130px; right: 100px;
    background: rgba(16,185,129,.05);
}

/* ── Form panel (right) ──────────────────────── */
.auth-form-wrap {
    background: var(--auth-form-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
    animation: authFadeIn .4s ease both;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.auth-form-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -.02em;
    margin-bottom: .375rem;
}

.auth-form-sub {
    font-size: .9rem;
    color: var(--auth-muted);
    margin-bottom: 2rem;
}

/* Session / status messages */
.auth-status {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    font-size: .85rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1.25rem;
}

/* Field */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--auth-text);
    margin-bottom: .4rem;
}

.auth-input {
    width: 100%;
    padding: .65rem .875rem;
    border: 1.5px solid var(--auth-border);
    border-radius: .5rem;
    font-family: var(--auth-font);
    font-size: .95rem;
    color: var(--auth-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    appearance: none;
}

.auth-input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px var(--auth-input-focus);
}

.auth-input.is-error {
    border-color: var(--auth-error);
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.auth-error-msg {
    font-size: .8rem;
    color: var(--auth-error);
    margin-top: .3rem;
}

/* Remember + Forgot row */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.auth-check-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--auth-muted);
    cursor: pointer;
    user-select: none;
}

.auth-check-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1.5px solid var(--auth-border);
    border-radius: .25rem;
    appearance: none;
    cursor: pointer;
    background: #fff;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
}

.auth-check-label input[type="checkbox"]:checked {
    background: var(--auth-accent);
    border-color: var(--auth-accent);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.auth-link {
    font-size: .875rem;
    color: var(--auth-accent-dark);
    text-decoration: none;
    font-weight: 500;
}
.auth-link:hover { text-decoration: underline; }

/* Submit button */
.auth-btn {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--auth-accent);
    color: #fff;
    border: none;
    border-radius: .5rem;
    font-family: var(--auth-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .1s;
    letter-spacing: -.01em;
}

.auth-btn:hover {
    background: var(--auth-accent-dark);
    box-shadow: 0 4px 14px var(--auth-accent-glow);
}

.auth-btn:active { transform: scale(.99); }

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .875rem;
    color: var(--auth-muted);
}
.auth-footer a {
    color: var(--auth-accent-dark);
    font-weight: 500;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
    color: #d1d5db;
    font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 1.75rem 1.5rem;
        min-height: auto;
    }

    /* Collapse brand panel on mobile */
    .brand-heading { font-size: 1.625rem; margin-bottom: .5rem; }
    .brand-features, .brand-bottom { display: none; }
    .brand-desc { display: none; }
    .brand-logo { margin-bottom: 0; }
    .auth-brand { flex-direction: row; align-items: center; padding: 1.25rem 1.5rem; }
    .brand-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
    .brand-heading { display: none; }

    .auth-form-wrap { padding: 2rem 1.5rem; }
}

@media (max-width: 400px) {
    .auth-form-wrap { padding: 1.5rem 1rem; }
}