/* assets/css/auth.css - Ultra Premium Indigo Edition */

:root {
    --bg-dark: #07080C;
    --card-bg: rgba(21, 25, 34, 0.7);
    --primary: #6366f1;
    --secondary: #4f46e5;
    --accent: #818cf8;
    --text-muted: #94a3b8;
    --radius: 24px;
}

body.auth-page {
    background-color: var(--bg-dark);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Background Blobs */
.blob-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.blob { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%); filter: blur(80px); border-radius: 50%; }
.blob-1 { top: -200px; left: -200px; }
.blob-2 { bottom: -200px; right: -200px; }

/* Main Wrapper */
.auth-wrapper {
    width: 100%;
    max-width: 1000px;
    display: flex;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: authEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authEntry {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Info Section (Left) */
.auth-info-section {
    flex: 1;
    padding: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo { width: 120px; margin-bottom: 40px; filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5)); }
.slogan { font-size: 2.5rem; font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 30px; }
.slogan span { color: var(--primary); text-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }

.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li { display: flex; align-items: center; margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; }
.benefit-list li i { color: var(--primary); margin-right: 15px; font-size: 1.2rem; }

/* Form Section (Right) */
.auth-form-section {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-section h2 { font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; }
.auth-form-section p { color: var(--text-muted); margin-bottom: 40px; }

/* Input Styles */
.form-group label { font-size: 0.85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.form-control {
    background: #1A1A24 !important;
    border: 1px solid #252A3D !important;
    color: #fff !important;
    padding: 15px 20px !important;
    border-radius: 14px !important;
    height: auto !important;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2) !important;
    background: #232332 !important;
}

/* Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3) !important;
    transition: all 0.4s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5) !important;
}

.auth-footer-links { margin-top: 30px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.auth-footer-links a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* --- LOGIN SUCCESS PORTAL ANIMATION --- */
.login-success-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #07080C;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.auth-wrapper.is-logging-in .login-success-overlay {
    display: flex;
    animation: portalFadeIn 0.5s forwards;
}

@keyframes portalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.portal-container {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    animation: rotateRing 2s linear infinite;
}

.ring-1 { width: 100%; height: 100%; border-top-color: #6366f1; border-right-color: rgba(99, 102, 241, 0.2); animation-duration: 2.5s; }
.ring-2 { width: 85%; height: 80%; border-top-color: #06b6d4; border-left-color: rgba(6, 182, 212, 0.2); animation-duration: 3s; animation-direction: reverse; }
.ring-3 { width: 70%; height: 65%; border-top-color: #818cf8; border-bottom-color: rgba(129, 140, 248, 0.2); animation-duration: 1.5s; }

.portal-logo {
    width: 100px;
    animation: logoPulse 1.5s ease-in-out infinite alternate;
}

.portal-logo img { width: 100%; filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6)); }

.portal-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: textFlicker 2s infinite;
}

.portal-text .text-main {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 12px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    line-height: 1;
}

.portal-text .text-sub {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    opacity: 0.8;
}

@keyframes rotateRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes logoPulse { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(1.1); opacity: 1; } }
@keyframes textFlicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- PAGE EXIT TRANSITION (PREMIUM HYPERDRIVE) --- */
body.page-is-exiting::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, var(--primary) 0%, #07080C 100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    animation: premiumExit 1s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes premiumExit {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); background: #07080C; }
}

/* Animasyon biterken halkaların hızlanması için ek sınıf */
body.page-is-exiting .portal-ring {
    animation-duration: 0.3s !important;
    filter: blur(5px) brightness(2);
    transform: scale(0);
    transition: all 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

body.page-is-exiting .portal-content {
    transform: scale(0.5);
    opacity: 0;
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

/* --- REGISTER SUCCESS PAGE STYLES --- */
.success-page-wrapper {
    max-width: 600px !important;
    background: rgba(21, 25, 34, 0.8) !important;
    padding: 60px 40px !important;
}

.success-visual-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon-main {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    z-index: 10;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-rings span {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: ringExpand 2s infinite;
}

.success-rings span:nth-child(2) { animation-delay: 0.5s; }
.success-rings span:nth-child(3) { animation-delay: 1s; }

.success-glow {
    position: absolute;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 15px;
    color: #fff;
}

.success-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.redirect-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.redirect-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar-fill {
    width: 100%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform-origin: left;
    animation: progressCountdown 5s linear forwards;
}

.redirect-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

.btn-premium-action {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    margin-bottom: 15px;
    transition: all 0.3s;
}

.btn-premium-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-outline-action {
    display: block;
    width: 100%;
    color: var(--text-muted);
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s;
}

.btn-outline-action:hover { color: #fff; }

@keyframes successPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ringExpand {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
@keyframes progressCountdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Responsive */
@media (max-width: 991px) {
    .auth-wrapper { flex-direction: column; max-width: 500px; }
    .auth-info-section { display: none; }
    .auth-form-section { padding: 40px; }
}
