.portal-container {
    max-width: 480px;
    margin: 40px auto 80px;
    padding: 0 1.25rem;
}

.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 12px;
}

.step-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step-badge.active {
    color: var(--primary);
    font-weight: 700;
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.step-badge.active .step-circle {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.step-divider {
    width: 32px;
    height: 1px;
    background: var(--border);
}

.auth-card {
    display: block !important;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.auth-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-dim);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.auth-header h2 {
    color: var(--primary);
    font-size: 1.45rem;
    margin-bottom: 4px;
}

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

.portal-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.delivery-preference-group {
    margin: 14px 0 18px;
}

.radio-toggle-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 6px;
}

.radio-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
}

.radio-box input[type="radio"] {
    accent-color: var(--primary);
}

.radio-box:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-dim);
    color: var(--primary);
}

.otp-input-wrapper {
    margin: 8px 0 12px;
}

.otp-digit-input {
    letter-spacing: 4px;
    font-size: 1.7rem !important;
    text-align: center;
    font-weight: 40;
    font-family: monospace, system-ui;
    color: var(--primary);
    padding: 8px;
    border: 2px solid var(--border);
}

.simulation-banner {
    background: var(--primary-dim);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.simulation-banner i {
    color: var(--primary);
    font-size: 1.1rem;
}

.simulation-banner strong {
    color: var(--primary);
    font-size: 1.05rem;
    letter-spacing: 2px;
    font-family: monospace;
    display: block;
}

.otp-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.82rem;
    padding: 0;
}

.btn-text:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    font-size: 1rem;
}

.auth-back-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.alert-danger {
    background: rgba(204, 0, 0, 0.1);
    border: 1px solid #cc0000;
    color: #cc0000;
}

.alert-success {
    background: rgba(26, 115, 232, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}