:root {
    --bg-page: #e8eef5;
    --card: #ffffff;
    --text-title: #1a2d4a;
    --text-muted: #6b7c93;
    --border: #d8e0ea;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --surface-muted: #f1f5f9;
    --shadow: 0 12px 40px rgba(26, 45, 74, 0.08);
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-title);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px 36px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 28px;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.field { margin-bottom: 18px; }

select, .phone-row input[type="text"] {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: var(--text-title);
}

select:focus, .phone-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.phone-row {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.phone-row .dial {
    min-width: 88px;
    border-right: 1px solid var(--border);
    background: var(--surface-muted);
    font-weight: 600;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.phone-row .national {
    flex: 1;
    border: none;
    border-radius: 0;
}

.btn-primary {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.section-divider {
    margin: 28px 0 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.otp-label { margin-bottom: 10px; }

.otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.otp-boxes input {
    width: 100%;
    max-width: 42px;
    aspect-ratio: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0;
    font-family: inherit;
}

.otp-boxes input:focus { outline: none; border-color: var(--primary); }

.btn-row { display: flex; gap: 12px; }

.btn-row button {
    flex: 1;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.btn-verify { background: var(--primary); color: #fff; }
.btn-verify:hover:not(:disabled) { background: var(--primary-hover); }

.btn-resend {
    background: var(--surface-muted);
    color: var(--text-title);
    border: 1px solid var(--border);
}

.btn-resend:hover:not(:disabled) { background: #e2e8f0; }

.reset-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
}

.result-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 28px 0 10px;
}

.result-box {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 0.85rem;
    line-height: 1.65;
}

.result-box dt { font-weight: 600; color: var(--text-muted); display: inline; }
.result-box dd { display: inline; margin: 0; font-weight: 500; }
.result-row { margin-bottom: 6px; }

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pending { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.status-approved { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.status-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
