/* VetSaaS — Auth (login + register) */
:root {
    --bg: #0b0f17;
    --surface: #151b2b;
    --surface-2: #1b2336;
    --border: rgba(255,255,255,.08);
    --border-lg: rgba(255,255,255,.15);
    --text: #e7ecf5;
    --text-muted: #8b93a8;
    --accent: #f59e0b;
    --accent-deep: #d97706;
}

* { box-sizing: border-box; }
body.auth-body {
    margin: 0; min-height: 100vh;
    background: var(--bg); color: var(--text);
    font-family: 'Manrope', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.accent { color: var(--accent); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fbbf24; }

.auth-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 100vh; }

.auth-aside {
    position: relative; overflow: hidden;
    padding: 32px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    z-index: 0;
}
.auth-aside-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,15,23,.6) 0%, rgba(11,15,23,.85) 100%);
    z-index: 1;
}
.auth-aside > * { position: relative; z-index: 2; }

.auth-brand {
    display: inline-flex; align-items: center; gap: 9px;
    font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em;
    color: var(--text);
}
.auth-brand:hover { color: var(--text); }

.auth-quote p {
    font-family: 'Fraunces', serif; font-size: 1.4rem;
    font-weight: 600; line-height: 1.35;
    letter-spacing: -.01em; margin: 0 0 10px;
    max-width: 480px;
}

.auth-main {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
}
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,.5);
}
.auth-card--wide { max-width: 640px; }

.auth-card h1 {
    font-family: 'Fraunces', serif; font-weight: 800;
    font-size: 2rem; letter-spacing: -.02em; margin: 0 0 6px;
}
.auth-sub { color: var(--text-muted); margin: 0 0 24px; font-size: .95rem; }

fieldset { border: 0; padding: 0; margin: 0 0 24px; }
fieldset legend {
    font-size: .78rem; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: .1em;
    padding: 0; margin: 0 0 14px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
fieldset:first-of-type legend { border-top: 0; padding-top: 0; }

.form-label {
    font-size: .82rem; font-weight: 600;
    color: var(--text-muted); margin-bottom: 4px;
}
.text-muted-ish { color: var(--text-muted); font-weight: 400; }
.form-control, .form-select {
    background: #0b0f17 !important; border: 1px solid var(--border-lg);
    color: var(--text); font-size: .95rem; padding: 10px 12px;
}
.form-control:focus, .form-select:focus {
    background: #0b0f17; border-color: var(--accent);
    color: var(--text); box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.form-control::placeholder { color: #4b5268; }

.btn { border-radius: 10px; font-weight: 600; }
.btn-lg { padding: 12px 20px; font-size: 1rem; }
.btn-primary-amber {
    background: var(--accent); color: #111; border: 1px solid var(--accent);
}
.btn-primary-amber:hover {
    background: var(--accent-deep); border-color: var(--accent-deep); color: #111;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -10px rgba(245,158,11,.5);
}

.alert-danger {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.3);
    color: #fca5a5;
    border-radius: 10px;
}

.auth-alt {
    margin: 20px 0 0; text-align: center;
    color: var(--text-muted); font-size: .9rem;
}

.auth-demo {
    margin-top: 26px; padding: 14px;
    background: var(--surface-2); border-radius: 10px;
    font-size: .82rem; border: 1px solid var(--border);
}
.auth-demo summary {
    cursor: pointer; color: var(--accent); font-weight: 600;
    list-style: none;
}
.auth-demo summary::-webkit-details-marker { display: none; }
.auth-demo summary::before { content: '» '; }
.auth-demo[open] summary::before { content: '▼ '; }
.auth-demo ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-muted); }

/* Plan choices */
.plan-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.plan-choice {
    position: relative; cursor: pointer;
    padding: 14px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border-lg);
    display: flex; flex-direction: column; gap: 2px;
    transition: all .15s;
}
.plan-choice:has(input:checked) {
    border-color: var(--accent); background: rgba(245,158,11,.08);
    box-shadow: 0 0 0 2px rgba(245,158,11,.1);
}
.plan-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pc-head { font-weight: 700; font-size: .92rem; }
.pc-price { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.pc-price small { font-family: 'Manrope'; font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.pc-desc { font-size: .78rem; color: var(--text-muted); }

@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-card { box-shadow: none; border: 0; background: transparent; padding: 20px; }
}
