/* =====================================================
   DALTON PANEL - GİRİŞ SAYFASI MEGA ANİMASYON
   "VAY ANANI" dedirtecek tasarım
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ff6600;
    --primary-glow: rgba(255, 102, 0, 0.5);
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-green: #00ff00;
    --neon-purple: #8f00ff;
    --dark-bg: #0a0a15;
    --card-bg: rgba(15, 15, 30, 0.9);
    --text-secondary: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1a2a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* =====================================================
   UÇUŞAN YILDIZLAR VE PARÇACIKLAR
===================================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 50px 80px, var(--neon-cyan), transparent),
        radial-gradient(3px 3px at 100px 40px, #fff, transparent),
        radial-gradient(2px 2px at 180px 120px, var(--neon-pink), transparent),
        radial-gradient(1px 1px at 250px 90px, #fff, transparent),
        radial-gradient(3px 3px at 320px 180px, var(--neon-green), transparent),
        radial-gradient(2px 2px at 400px 60px, #fff, transparent),
        radial-gradient(2px 2px at 480px 200px, var(--neon-purple), transparent),
        radial-gradient(1px 1px at 550px 140px, #fff, transparent),
        radial-gradient(3px 3px at 620px 80px, var(--neon-cyan), transparent),
        radial-gradient(2px 2px at 700px 220px, #fff, transparent),
        radial-gradient(2px 2px at 780px 160px, var(--neon-pink), transparent),
        radial-gradient(1px 1px at 850px 100px, #fff, transparent),
        radial-gradient(3px 3px at 920px 240px, var(--neon-green), transparent),
        radial-gradient(2px 2px at 1000px 180px, #fff, transparent);
    background-size: 1100px 300px;
    animation: flyingStars 25s linear infinite;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 102, 0, 0.08) 0%, transparent 40%);
    animation: nebulaSwirl 30s ease-in-out infinite;
    z-index: 0;
}

@keyframes flyingStars {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-66.67%, -66.67%); }
}

@keyframes nebulaSwirl {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.02); }
    50% { transform: rotate(0deg) scale(1.05); }
    75% { transform: rotate(-2deg) scale(1.02); }
}

/* Matrix Background Canvas */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
}

/* =====================================================
   METEOR SHOWER EFEKTİ
===================================================== */
.login-page {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--neon-cyan), transparent);
    animation: meteor 3s linear infinite;
}

.login-page::before {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.login-page::after {
    top: 0;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes meteor {
    0% {
        transform: translateY(-100px) rotate(45deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(100vh) rotate(45deg);
        opacity: 0;
    }
}

/* =====================================================
   LOGIN CONTAINER - MEGA STYLE
===================================================== */
.login-container {
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 25, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 35px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 0 60px rgba(255, 102, 0, 0.3),
        0 0 120px rgba(138, 43, 226, 0.15),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
    animation: containerFloat 6s ease-in-out infinite, borderGlow 3s ease-in-out infinite;
}

.login-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--neon-purple), 
        var(--neon-cyan), 
        var(--neon-pink),
        var(--primary));
    background-size: 400% 400%;
    border-radius: 26px;
    z-index: -1;
    animation: borderRotate 8s linear infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.98), rgba(10, 10, 25, 0.99));
    border-radius: 22px;
    z-index: -1;
}

@keyframes containerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 60px rgba(255, 102, 0, 0.3), 0 0 120px rgba(138, 43, 226, 0.15); }
    50% { box-shadow: 0 0 80px rgba(255, 102, 0, 0.5), 0 0 150px rgba(138, 43, 226, 0.25); }
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =====================================================
   LOGO - DÖNEN VE PARLAYAN
===================================================== */
.login-logo {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.login-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: logoSpin 10s linear infinite, logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    border: 3px solid var(--primary);
}

.login-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border: 2px dashed var(--neon-cyan);
    border-radius: 50%;
    animation: orbitRing 15s linear infinite;
    opacity: 0.5;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 20px var(--primary-glow)); }
    50% { filter: drop-shadow(0 0 40px var(--primary-glow)) drop-shadow(0 0 60px var(--neon-purple)); }
}

@keyframes orbitRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =====================================================
   BAŞLIK - NEON GLITCH EFEKTİ
===================================================== */
.login-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--primary), var(--neon-pink), var(--neon-cyan), var(--primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 4s linear infinite, titleGlitch 5s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

@keyframes titleShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes titleGlitch {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 1px); }
    92% { transform: translate(2px, -1px); }
    93% { transform: translate(-1px, -1px); }
    94% { transform: translate(1px, 1px); }
}

/* =====================================================
   FORM ALANLARI - NEON BORDER
===================================================== */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    color: var(--neon-cyan);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    animation: labelGlow 3s ease-in-out infinite;
}

@keyframes labelGlow {
    0%, 100% { text-shadow: 0 0 5px var(--neon-cyan); }
    50% { text-shadow: 0 0 15px var(--neon-cyan), 0 0 25px var(--neon-cyan); }
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.4s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 
        0 0 20px rgba(255, 102, 0, 0.4),
        inset 0 0 20px rgba(255, 102, 0, 0.05);
    background: rgba(255, 102, 0, 0.05);
}

.form-control::placeholder {
    color: #555;
}

/* =====================================================
   GİRİŞ BUTONU - MEGA ANİMASYON
===================================================== */
.btn {
    display: inline-block;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff3300, var(--neon-purple));
    background-size: 200% 200%;
    animation: btnGradient 4s ease infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

.btn-primary:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 
        0 10px 40px rgba(255, 102, 0, 0.5),
        0 0 60px rgba(138, 43, 226, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-lg {
    padding: 18px 30px;
    font-size: 16px;
}

@keyframes btnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* =====================================================
   ALERT KUTULARI
===================================================== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: alertPop 0.5s ease;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

@keyframes alertPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* =====================================================
   FOOTER LINK
===================================================== */
.login-footer {
    text-align: center;
    margin-top: 25px;
}

.login-footer p {
    color: #888;
    font-size: 13px;
}

.login-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* =====================================================
   RESPONSİVE
===================================================== */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
        margin: 15px;
    }
    
    .login-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .login-logo img {
        width: 80px;
        height: 80px;
    }
    
    .form-control {
        padding: 14px 16px;
    }
    
    .btn-primary {
        padding: 15px 25px;
        font-size: 14px;
    }
}

/* Login Subtitle */
.login-subtitle {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-bottom: 25px;
    margin-top: -20px;
}
