/* Annahl — Auth UI */
:root {
    --bg: #0f1419;
    --surface: #1a2332;
    --surface-2: #243044;
    --border: #2d3a4f;
    --text: #e8edf5;
    --muted: #94a3b8;
    --primary: #22c55e;
    --primary-hover: #16a34a;
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --success-bg: rgba(34, 197, 94, 0.12);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --radius: 14px;
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: radial-gradient(circle at top, #1e293b 0%, var(--bg) 55%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Hanya halaman auth (login/register) — jangan pakai class .card di app layout */
.page .card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
}

.page .card-wide {
    max-width: 720px;
}

.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #059669);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 16px;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--muted);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.btn-primary {
    background: var(--primary);
    color: #052e16;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
}

.btn-secondary:hover {
    background: #2f3d52;
}

.btn:active {
    transform: scale(0.98);
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.alert-error {
    background: var(--danger-bg);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.alert-success {
    background: var(--success-bg);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

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

.footer-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.footer-link a:hover {
    text-decoration: underline;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dashboard-header h1 {
    font-size: 1.35rem;
}

.dashboard-header p {
    color: var(--muted);
    font-size: 0.9rem;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.dashboard-actions .btn {
    width: auto;
    padding: 10px 18px;
}

.info-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.info-box dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-box dd {
    font-size: 1rem;
    font-weight: 600;
    margin: 4px 0 16px;
}

.info-box dd:last-child {
    margin-bottom: 0;
}

.info-box-flat {
    background: transparent;
    border: none;
    padding: 0;
}

.panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title i {
    color: var(--primary);
}

.card-dashboard {
    max-width: 820px;
}

.dash-menu-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.dash-menu-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.dash-menu-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.dash-menu-primary {
    border-left: 4px solid var(--primary);
}

.dash-menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dash-menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-menu-body strong {
    font-size: 1rem;
}

.dash-menu-body small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.dash-menu-arrow {
    color: var(--muted);
    flex-shrink: 0;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 4px;
}

.dash-stat {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
}

.dash-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

.dash-stat-value.danger {
    color: #f87171;
}

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