/* Girişe yönlendirme overlay — login sayfası ile aynı tasarım dili */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Login ile aynı CSS değişkenleri (koyu tema) */
.erp-redirect-overlay {
    --erp-bg-base: #0b0f19;
    --erp-bg-grad-1: #0b0f19;
    --erp-bg-grad-2: #111827;
    --erp-card-bg: rgba(255,255,255,0.04);
    --erp-card-border: rgba(255,255,255,0.09);
    --erp-card-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 8px 24px rgba(0,0,0,0.35);
    --erp-blob1: rgba(47,172,102,0.18);
    --erp-blob2: rgba(99,102,241,0.12);
    --erp-title-color: #ffffff;
    --erp-hr: rgba(255,255,255,0.07);
}

/* Overlay JS ile body'ye eklendiği için tam ekranı kaplar; #ApplicationContainer arkada kalır */

.erp-redirect-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(ellipse at 20% 50%, var(--erp-blob1) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 20%, var(--erp-blob2) 0%, transparent 50%),
                linear-gradient(135deg, var(--erp-bg-grad-1) 0%, var(--erp-bg-grad-2) 100%);
}

.erp-redirect-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(var(--erp-hr) 1px, transparent 1px),
                      linear-gradient(90deg, var(--erp-hr) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.6;
}

.erp-redirect-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    padding: 2rem 2.25rem;
    background: var(--erp-card-bg);
    border: 1px solid var(--erp-card-border);
    border-radius: 22px;
    box-shadow: var(--erp-card-shadow);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: erpRedirectCardIn 0.4s cubic-bezier(.22,.68,0,1.15) both;
}

@keyframes erpRedirectCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.erp-redirect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2FAC66, transparent);
    opacity: 0.7;
    border-radius: 50%;
}

.erp-redirect-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--erp-title-color);
    text-align: center;
    letter-spacing: -.02em;
}

.redirect-spinner {
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-right-color: #fff;
    border-radius: 50%;
    animation: erpRedirectSpin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes erpRedirectSpin {
    to { transform: rotate(360deg); }
}
