/* 3-step authentication wizard */

/* The [hidden] attribute must always win, even over display rules above. */
[hidden] {
    display: none !important;
}

/* ---- Panels ---- */

.wizard-panel {
    display: block;
}

/* ---- Inline errors ---- */

.wizard-error {
    border: 1px solid #f1a899;
    background: #fddfdf;
    color: #5f3f3f;
    border-radius: 4px;
    padding: 10px;
    margin: 0 0 15px;
    font-size: 12px;
    text-align: left;
}

.wizard-hint {
    color: #6d6f71;
    font-size: 12px;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Keep the OTP panels the same height as the login panel so the page layout
   (FOREIGN EXCHANGE button, footer) stays identical across steps. */
#wizard-panel-2,
#wizard-panel-3 {
    min-height: 367px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Balance the wrapping of instruction text so it doesn't break awkwardly. */
.form .message {
    text-wrap: balance;
}

@media (max-width: 640px) {
    .form {
        padding: 28px 22px;
    }
}

/* ---- Loading spinner ---- */

.wizard-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(45, 112, 81, 0.25);
    border-top-color: #2d7051;
    border-radius: 50%;
    animation: wizard-spin 0.7s linear infinite;
    flex: none;
}

@keyframes wizard-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ---- Results view ---- */

.wizard-results-title {
    color: #0c4221;
    font-size: 18px;
    margin: 0 0 12px;
}

.wizard-summary {
    text-align: left;
    font-size: 12px;
    margin: 0 0 14px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    overflow: hidden;
}

.wizard-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

.wizard-summary-row:last-child {
    border-bottom: 0;
}

.wizard-summary-key {
    color: #6d6f71;
    text-transform: capitalize;
}

.wizard-summary-val {
    color: #0c4221;
    font-weight: bold;
    text-align: right;
    word-break: break-word;
}

.wizard-progress {
    width: 100%;
    height: 14px;
    background: #c7c8ca;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0 8px;
}

.wizard-progress-fill {
    height: 100%;
    width: 0;
    background: #389685;
    transition: width 0.4s ease;
}

#wizard-progress-label {
    color: #0c4221;
}
