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

:root {
    --accent:       #4f46e5;
    --accent-dark:  #4338ca;
    --bg:           #f4f5fa;
    --surface:      #ffffff;
    --border:       #e7e9f0;
    --text:         #1a2233;
    --text-muted:   #667085;
    --radius:       18px;
    --radius-sm:    11px;
    --error-text:   #d64545;
    --error-bg:     #fef2f2;
    --error-border: #fecaca;
}

html, body {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
}

/* ── Centered layout ───────────────────────────────────────────────── */
.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* Logo above card */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    text-decoration: none;
}
.auth-logo img {
    height: 40px;
}
.auth-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.auth-logo-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
}
.auth-logo-name span { color: var(--accent); }

/* Card */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    padding: 36px 36px 32px;
}

/* Footer below card */
.auth-page-footer {
    margin-top: 24px;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
}
.auth-page-footer a { color: #64748b; text-decoration: none; }
.auth-page-footer a:hover { text-decoration: underline; }

/* ── Form primitives ─────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: #475569; }
input[type=text],
input[type=email],
input[type=password],
input[type=tel] {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background .15s, transform .1s;
    font-family: inherit;
}
.btn-submit:hover  { background: var(--accent-dark); }
.btn-submit:active { transform: scale(.99); }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: .8rem;
    color: var(--text-muted);
}

.field-error { font-size: .78rem; color: var(--error-text); margin-top: 4px; display: block; }

.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px 24px; }
}
