/* login.php sayfasina ait stiller. <head> icinde yuklenir. */
/* ----------------------------------------------
   1. AMBIENT & COSMIC UNIVERSE WRAPPER
------------------------------------------------ */
.auth-universe-wrapper {
    position: relative;
    background-color: #060810;
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    overflow: hidden;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: flex-start;
    padding: clamp(10px, 1.8vh, 22px) 0 clamp(24px, 3.5vh, 44px);
}

.cosmic-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.cosmic-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    pointer-events: none;
    animation: pulseAuthNebula 12s ease-in-out infinite alternate;
}

.nebula-cyan {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #00f2ff, transparent 70%);
    top: -120px;
    left: -120px;
}

.nebula-purple {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7928ca, transparent 70%);
    top: 30%;
    right: -180px;
    animation-delay: -5s;
}

.nebula-gold {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #ff9900, transparent 70%);
    bottom: 5%;
    left: 10%;
    opacity: 0.16;
    animation-delay: -8s;
}

.cosmic-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

@keyframes pulseAuthNebula {
    0% { transform: scale(1) translateY(0); opacity: 0.28; }
    50% { transform: scale(1.1) translateY(-15px); opacity: 0.42; }
    100% { transform: scale(0.95) translateY(10px); opacity: 0.28; }
}

.auth-main-container {
    position: relative;
    z-index: 5;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ----------------------------------------------
   2. TYPOGRAPHY & GRADIENTS
------------------------------------------------ */
.gradient-text-cyan-blue {
    background: linear-gradient(135deg, #00f2ff 0%, #3b82f6 50%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-cyan { color: #00f2ff !important; }
.text-emerald { color: #10b981 !important; }
.text-purple { color: #a855f7 !important; }
.text-gold { color: #fbbf24 !important; }

/* ----------------------------------------------
   3. SPLIT-SCREEN GRID LAYOUT
------------------------------------------------ */
.auth-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(28px, 3.8vw, 50px);
    align-items: center;
}

/* ----------------------------------------------
   4. LEFT SHOWCASE COLUMN
------------------------------------------------ */
.auth-showcase-column {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.8vh, 20px);
}

.auth-chip-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border-radius: 50px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.25);
    backdrop-filter: blur(12px);
    color: #00f2ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00f2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f2ff;
    animation: pulseAuthDot 2s infinite;
}

@keyframes pulseAuthDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

.auth-hero-title {
    font-size: clamp(2rem, min(3.1vw, 4.4vh), 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
}

.auth-hero-desc {
    font-size: clamp(0.88rem, 1.45vh, 1.02rem);
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    max-width: 580px;
}

/* Oyun Hedef Bannerı */
.game-target-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.12), rgba(147, 51, 234, 0.12));
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 18px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.12);
}

.game-target-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 242, 255, 0.2);
    color: #00f2ff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulseTarget 1.5s infinite alternate;
}

@keyframes pulseTarget {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.game-target-banner h6 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.game-target-banner p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Vitrin Özellikleri 2x2 Grid */
.showcase-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 1.4vh, 16px);
    margin-top: clamp(4px, 0.8vh, 10px);
}

.showcase-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(18, 25, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: clamp(11px, 1.6vh, 16px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.showcase-feat-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.feat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.icon-cyan { background: rgba(0, 242, 255, 0.12); color: #00f2ff; border: 1px solid rgba(0, 242, 255, 0.25); }
.icon-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.25); }
.icon-gold { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }

.feat-text h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.feat-text p {
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* Güven Şeridi */
.showcase-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 1.8vw, 20px);
    padding-top: clamp(10px, 1.4vh, 15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------------
   5. RIGHT FORM COLUMN (GLASSMORPHISM CONSOLE)
------------------------------------------------ */
.auth-card-stage {
    --astro-w: clamp(108px, min(12.5vw, 16vh), 152px);
    position: relative;
    width: 100%;
    margin-top: calc(var(--astro-w) * 1.12);
}

.login-astronaut-peeker {
    position: absolute;
    left: clamp(24px, 2.6vw, 34px);
    bottom: 100%;
    width: var(--astro-w);
    z-index: 4;
    pointer-events: none;
    user-select: none;
    transform: translateY(8.17%);
    animation: astronautPeekIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-astronaut-img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 50% 90%;
    filter:
        drop-shadow(0 10px 16px rgba(0, 0, 0, 0.58))
        drop-shadow(0 0 12px rgba(0, 242, 255, 0.16));
    animation: astronautPeekBreath 5.5s ease-in-out 0.65s infinite;
}

@keyframes astronautPeekIn {
    from {
        opacity: 0;
        transform: translateY(calc(8.17% + 16px));
    }
    to {
        opacity: 1;
        transform: translateY(8.17%);
    }
}

@keyframes astronautPeekBreath {
    0%, 100% {
        transform: scaleY(1) rotate(0deg);
    }
    50% {
        transform: scaleY(1.018) rotate(-0.8deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-astronaut-peeker,
    .login-astronaut-img {
        animation: none;
    }
}

.auth-glass-card {
    background: rgba(18, 25, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: clamp(20px, 2.8vh, 34px) clamp(24px, 2.6vw, 36px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 242, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* İnce üst tarama çizgisi (Scanline) */
.auth-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f2ff, #7928ca, transparent);
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.card-header-block {
    text-align: center;
    margin-bottom: clamp(12px, 2vh, 22px);
}

.card-title {
    font-size: clamp(1.42rem, 2.4vh, 1.8rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.card-subtitle {
    font-size: clamp(0.8rem, 1.35vh, 0.9rem);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Bildirim Kutuları */
.auth-notice-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 22px;
}

.notice-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.notice-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.badge-attempts {
    font-weight: 700;
    color: #fbbf24;
    display: inline-block;
    margin-left: 4px;
}

/* Form Grupları */
.auth-form-body {
    display: flex;
    flex-direction: column;
    gap: clamp(11px, 1.8vh, 18px);
}

.modern-field-group {
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 0.8vh, 8px);
}

.modern-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

.modern-tech-input {
    width: 100%;
    padding: clamp(10px, 1.45vh, 13px) 16px clamp(10px, 1.45vh, 13px) 44px;
    background: rgba(10, 15, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    font-size: clamp(0.88rem, 1.4vh, 0.95rem);
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modern-tech-input:focus {
    border-color: #00f2ff;
    background: rgba(10, 15, 28, 0.85);
    box-shadow: 
        0 0 20px rgba(0, 242, 255, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.modern-input-wrapper:focus-within .input-prefix-icon {
    color: #00f2ff;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #00f2ff;
}

/* Beni Hatırla & Şifremi Unuttum Satırı */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -2px 0 2px;
}

.remember-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    user-select: none;
}

.custom-checkbox {
    width: 17px;
    height: 17px;
    accent-color: #00f2ff;
    cursor: pointer;
    border-radius: 4px;
}

.forgot-password-link {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.forgot-password-link:hover {
    color: #00f2ff;
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.5);
}

/* Giriş Butonu */
.mission-login-btn {
    width: 100%;
    padding: clamp(11px, 1.65vh, 14px) 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #00f2ff 0%, #2563eb 50%, #7c3aed 100%);
    color: #ffffff;
    font-size: clamp(0.88rem, 1.45vh, 0.95rem);
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.mission-login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 242, 255, 0.45);
    filter: brightness(1.08);
}

.mission-login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.mission-login-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-arrow {
    transition: transform 0.25s ease;
}

.mission-login-btn:hover:not(:disabled) .btn-arrow {
    transform: translateX(4px);
}

/* Ayırıcı */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: clamp(11px, 1.8vh, 18px) 0 clamp(10px, 1.5vh, 16px);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    padding: 0 14px;
}

/* Footer & Rol Hapları */
.auth-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 1.4vh, 14px);
}

.register-prompt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    text-align: center;
}

.register-link {
    color: #00f2ff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.register-link:hover {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.role-switch-pills {
    display: flex;
    gap: 10px;
    width: 100%;
}

.role-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(7px, 1.1vh, 9px) 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pill-teacher {
    color: #f59e0b;
}

.pill-teacher:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

.pill-register {
    color: #00f2ff;
}

.pill-register:hover {
    background: rgba(0, 242, 255, 0.12);
    border-color: rgba(0, 242, 255, 0.35);
    transform: translateY(-2px);
}

/* ----------------------------------------------
   6. RESPONSIVE BREAKPOINTS
------------------------------------------------ */
@media (max-width: 1024px) {
    .auth-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .auth-form-column {
        order: 1;
        width: 100%;
    }

    .auth-showcase-column {
        order: 2;
        text-align: center;
        align-items: center;
    }

    .auth-hero-title {
        font-size: 2.3rem;
    }

    .showcase-features-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        width: 100%;
    }

    .showcase-trust-strip {
        justify-content: center;
    }

    .auth-card-stage {
        --astro-w: clamp(124px, 22vw, 156px);
        max-width: 500px;
        margin: calc(var(--astro-w) * 1.12) auto 0;
        width: 100%;
    }

    .login-astronaut-peeker {
        left: 28px;
    }

    .auth-glass-card {
        max-width: none;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .auth-universe-wrapper {
        padding: 12px 0 44px;
    }

    .auth-card-stage {
        --astro-w: clamp(110px, 31vw, 138px);
        margin-top: calc(var(--astro-w) * 1.12);
    }

    .login-astronaut-peeker {
        left: 22px;
    }

    .auth-glass-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .auth-hero-title {
        font-size: 1.85rem;
    }

    .showcase-features-grid {
        grid-template-columns: 1fr;
    }

    .role-switch-pills {
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .auth-card-stage {
        --astro-w: 116px;
    }

    .login-astronaut-peeker {
        left: 18px;
    }
}
