/* ─── Alo Varzesh SSO – Front-end Styles ─────────────────────────────────── */

.avs-sso-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 40px 24px;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    direction: rtl;
}

/* ─── State containers ───────────────────────────────────────────────────── */
.avs-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    animation: avsFadeIn 0.4s ease;
}

@keyframes avsFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Loading ────────────────────────────────────────────────────────────── */
.avs-loading {
    color: #555;
}

.avs-spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: avsSpin 0.8s linear infinite;
}

@keyframes avsSpin {
    to { transform: rotate(360deg); }
}

.avs-loading-text {
    margin: 0;
    font-size: 15px;
    color: #444;
}

/* ─── Error ──────────────────────────────────────────────────────────────── */
.avs-error {
    background: #fff8f8;
    border: 1px solid #f0a0a0;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 420px;
    width: 100%;
}

.avs-error-icon {
    font-size: 40px;
    line-height: 1;
    color: #d63638;
}

.avs-error-msg {
    margin: 0;
    font-size: 14px;
    color: #d63638;
    line-height: 1.6;
}

/* ─── Success ────────────────────────────────────────────────────────────── */
.avs-success {
    background: #f0fff4;
    border: 1px solid #68d391;
    border-radius: 12px;
    padding: 28px 32px;
}

.avs-success-icon {
    font-size: 48px;
    color: #38a169;
    animation: avsBounce 0.5s ease;
}

@keyframes avsBounce {
    0%   { transform: scale(0.5); }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ─── Retry button ───────────────────────────────────────────────────────── */
.avs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}

.avs-btn:active { transform: scale(0.97); }

.avs-btn-retry {
    background: #2271b1;
    color: #fff;
    font-size: 15px;
    padding: 11px 28px;
}

.avs-btn-retry:hover { background: #1a5c8f; }
