:root {
    --bg-main: #0b1120;
    --bg-card: #1e293b;
    --border-color: #334155;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --gold: #f59e0b;
    --gold-hover: #d97706;
    --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }

body.auth-body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    padding: 32px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.badge-ipg {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.auth-header h1 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

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

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

.auth-input {
    width: 100%;
    background: #0f172a;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 12px;
    border-radius: 8px;
    font-size: 16px; /* Mencegah auto-zoom di iOS */
}

.auth-input:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-submit {
    width: 100%;
    background: var(--gold);
    color: #0b1120;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    min-height: 48px;
}

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

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    text-align: center;
}

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

.hidden { display: none; }
