﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #121726; /* Koyu lacivert arka plan (görsel ile uyumlu) */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    /* Koyu gradient arka plan */
    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
        z-index: 1;
    }

    /* Samanyolu yıldız efekti */
    body::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(1px 1px at 25% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 100%), radial-gradient(1px 1px at 50% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 100%), radial-gradient(1px 1px at 75% 60%, rgba(255, 255, 255, 0.4) 0%, transparent 100%), radial-gradient(2px 2px at 10% 20%, rgba(33, 156, 255, 0.4) 0%, transparent 100%), radial-gradient(2px 2px at 30% 70%, rgba(33, 156, 255, 0.3) 0%, transparent 100%), radial-gradient(2px 2px at 60% 50%, rgba(33, 156, 255, 0.4) 0%, transparent 100%), radial-gradient(2px 2px at 85% 40%, rgba(33, 156, 255, 0.2) 0%, transparent 100%), radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 100%), radial-gradient(1px 1px at 40% 90%, rgba(255, 255, 255, 0.2) 0%, transparent 100%), radial-gradient(1px 1px at 70% 85%, rgba(255, 255, 255, 0.3) 0%, transparent 100%), radial-gradient(1px 1px at 90% 75%, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
        z-index: 2;
        animation: twinkle 10s ease-in-out infinite alternate;
        opacity: 0.8;
    }

/* Samanyolu dalga efekti */
.digital-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 60%;
    bottom: -20%;
    left: -50%;
    opacity: 0.3;
    border-radius: 40%;
}

.wave1 {
    background: radial-gradient(ellipse at center, rgba(33, 156, 255, 0.3) 0%, transparent 70%);
    transform: rotate(-5deg);
    opacity: 0.3;
    animation: galaxyWave1 15s ease-in-out infinite alternate;
}

.wave2 {
    background: radial-gradient(ellipse at center, rgba(33, 156, 255, 0.2) 0%, transparent 70%);
    transform: rotate(3deg);
    opacity: 0.25;
    animation: galaxyWave2 18s ease-in-out infinite alternate;
}

.wave3 {
    background: linear-gradient(90deg, transparent 0%, rgba(33, 156, 255, 0.2) 20%,  
    rgba(63, 186, 255, 0.4) 50%,  
    rgba(33, 156, 255, 0.2) 80%,  
    transparent 100%);
    height: 30%;
    bottom: 5%;
    transform: rotate(-2deg);
    opacity: 0.3;  
    filter: blur(8px);
    animation: galaxyWave3 22s ease-in-out infinite alternate;
}

.trust-light {
    position: absolute;
    width: 300%;
    height: 100%;
    top: 60%;
    left: -100%;
    background: radial-gradient(ellipse at center, rgba(63, 186, 255, 0.3) 0%, transparent 60%);  
    border-radius: 40%;
    transform: rotate(-10deg);
    filter: blur(15px);
    animation: galaxyGlow 20s linear infinite alternate;
    z-index: 3;
    opacity: 0.4;  
}

/* Premium floating particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 4; 
    pointer-events: none; 
}

.particle {
    position: absolute;
    display: block;
    pointer-events: none;
    border-radius: 50%;
}

    .particle:nth-child(1) {
        width: 3px;  
        height: 3px;  
        background-color: rgba(255, 255, 255, 1);  
        top: 20%;
        left: 20%;
        box-shadow: 0 0 15px 3px rgba(63, 186, 255, 0.8);  
        animation: particleFloat 20s infinite linear;
    }

    .particle:nth-child(2) {
        width: 4px;  
        height: 4px;  
        background-color: rgba(255, 255, 255, 1);  
        top: 40%;
        left: 70%;
        box-shadow: 0 0 12px 3px rgba(63, 186, 255, 0.7);  
        animation: particleFloat 25s infinite linear;
    }

    .particle:nth-child(3) {
        width: 2px;  
        height: 2px; 
        background-color: rgba(255, 255, 255, 1);  
        top: 70%;
        left: 30%;
        box-shadow: 0 0 18px 4px rgba(63, 186, 255, 0.9);  
        animation: particleFloat 30s infinite linear;
    }

    .particle:nth-child(4) {
        width: 3px; 
        height: 3px; 
        background-color: rgba(255, 255, 255, 1);  
        top: 30%;
        left: 80%;
        box-shadow: 0 0 15px 3px rgba(63, 186, 255, 0.8);  
        animation: particleFloat 22s infinite linear;
    }

    .particle:nth-child(5) {
        width: 2px; 
        height: 2px;  
        background-color: rgba(255, 255, 255, 1);  
        top: 60%;
        left: 10%;
        box-shadow: 0 0 18px 4px rgba(63, 186, 255, 0.9);  
        animation: particleFloat 28s infinite linear;
    }

    .particle:nth-child(6) {
        width: 3px;
        height: 3px;
        background-color: rgba(255, 255, 255, 1);
        top: 50%;
        left: 50%;
        box-shadow: 0 0 15px 3px rgba(63, 186, 255, 0.8);
        animation: particleFloat 18s infinite linear;
    }

    .particle:nth-child(7) {
        width: 2px;
        height: 2px;
        background-color: rgba(255, 255, 255, 1);
        top: 80%;
        left: 40%;
        box-shadow: 0 0 12px 3px rgba(63, 186, 255, 0.7);
        animation: particleFloat 24s infinite linear;
    }

    .particle:nth-child(8) {
        width: 4px;
        height: 4px;
        background-color: rgba(255, 255, 255, 1);
        top: 25%;
        left: 65%;
        box-shadow: 0 0 18px 4px rgba(63, 186, 255, 0.9);
        animation: particleFloat 32s infinite linear;
    }

.login-container {
    background: rgba(255, 255, 255, 0.95); /* Hafif transparan beyaz form arka planı */
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(21, 41, 78, 0.15);
    transform: translateY(-5px);
    transition: all 0.4s ease;
    z-index: 10;
    animation: containerFloat 4s ease-in-out infinite;
    overflow: hidden;
}

    .login-container::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(33, 97, 170, 0.05) 0%, transparent 60%);
        animation: glowRotate 15s linear infinite;
    }

    .login-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, transparent, rgba(33, 97, 170, 0.8), transparent);
        animation: borderPulse 4s infinite;
    }

    .login-container:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(33, 97, 170, 0.2);
        border-color: rgba(33, 97, 170, 0.3);
    }

.logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 8px rgba(21, 41, 78, 0.3));
}

    .logo:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 2px 12px rgba(21, 41, 78, 0.5));
    }

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .login-header h1 {
        color: #15294E; /* Koyu lacivert */
        font-size: 2.2rem;
        margin: 0;
        font-weight: 600;
        text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        display: inline-block;
    }

        .login-header h1::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 3px;
            background: #394767;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 3px;
        }

    .login-header p {
        color: #394767; /* Orta lacivert */
        margin-top: 1.5rem;
        font-size: 1rem;
    }

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 0 15px 0 45px; /* Sol padding iconlar için */
    border: 2px solid rgba(57, 71, 103, 0.2);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #15294E; /* Koyu metin rengi */
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 50px; /* Sabit yükseklik */
}

    .form-control:focus {
        outline: none;
        border-color: rgba(21, 41, 78, 0.8);
        box-shadow: 0 0 15px rgba(21, 41, 78, 0.15);
        background-color: #FFFFFF;
    }

.form-group i.input-icon {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #394767; /* Orta lacivert */
    z-index: 5;
    pointer-events: none;
    height: 50px; /* Input ile aynı yükseklik */
}

.form-group:hover i.input-icon {
    color: #15294E; /* Koyu lacivert hover durumu */
}

.form-group:focus-within i.input-icon {
    color: #15294E; /* Koyu lacivert focus durumu */
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: #15294E;
    color: #FFFFFF; /* Beyaz metin rengi */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(21, 41, 78, 0.3);
}

    .btn-login:hover {
        background: #394767;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(57, 71, 103, 0.4);
    }

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

    /* Buton üzerinde teknoloji efekti */
    .btn-login::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
        transform-origin: center center;
        animation: btnGlow 3s infinite linear;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .btn-login:hover::before {
        opacity: 1;
    }

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #394767; /* Orta lacivert */
}

    /* Custom checkbox styling */
    .remember-me input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(57, 71, 103, 0.3);
        border-radius: 4px;
        margin-right: 10px;
        cursor: pointer;
        position: relative;
        background: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
    }

        /* Checkbox hover state */
        .remember-me input[type="checkbox"]:hover {
            border-color: rgba(21, 41, 78, 0.8);
        }

        /* Checkbox checked state */
        .remember-me input[type="checkbox"]:checked {
            background: #15294E;
            border-color: #15294E;
        }

            /* Checkbox tick mark */
            .remember-me input[type="checkbox"]:checked::before {
                content: '\f00c'; /* Font Awesome check mark */
                font-family: "Font Awesome 6 Free";
                font-weight: 900;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: #FFFFFF; /* Beyaz renk tik işareti */
                font-size: 12px;
            }

        /* Checkbox focus state */
        .remember-me input[type="checkbox"]:focus {
            outline: none;
            box-shadow: 0 0 5px rgba(21, 41, 78, 0.3);
        }

.forgot-password {
    position: relative;
    text-align: center;
    margin-top: 1.5rem;
    z-index: 100;
}

    .forgot-password a {
        color: #394767; /* Orta lacivert */
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
        display: inline-block;
    }

        .forgot-password a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 1px;
            bottom: -2px;
            left: 0;
            background-color: #15294E;
            transition: width 0.3s ease;
        }

        .forgot-password a:hover {
            color: #15294E; /* Koyu hover durumu */
        }

            .forgot-password a:hover::after {
                width: 100%;
            }

.validation-summary-errors {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid #ff6b6b;
}

    .validation-summary-errors ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

.field-validation-error {
    position: absolute;
    left: 0;
    bottom: -20px;
    color: #ff6b6b;
    font-size: 0.8rem;
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: #FFFFFF; /* Beyaz modal arka planı */
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(21, 41, 78, 0.1);
    width: 90%;
    max-width: 400px;
    position: relative;
    margin: 50px auto;
    color: #15294E; /* Koyu metin rengi */
    animation: modalSlideDown 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #394767; /* Orta lacivert */
    transition: color 0.3s ease;
}

    .close-modal:hover {
        color: #15294E; /* Koyu lacivert hover durumu */
    }

.modal h2 {
    margin-bottom: 1rem;
    color: #15294E; /* Koyu metin rengi */
    position: relative;
    display: inline-block;
}

    .modal h2::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 2px;
        background: #15294E;
        bottom: -8px;
        left: 0;
        border-radius: 2px;
    }

.modal p {
    margin-bottom: 1.5rem;
    color: #394767; /* Orta lacivert */
}

/* Success message styling */
.success-message {
    color: #4CAF50;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(76, 175, 80, 0.1);
    margin-top: 10px;
    display: none;
}

/* Animasyonlar */
@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes galaxyWave1 {
    0% {
        transform: rotate(-5deg) translateY(0);
    }

    100% {
        transform: rotate(-5deg) translateY(-20px);
    }
}

@keyframes galaxyWave2 {
    0% {
        transform: rotate(3deg) translateY(-5px);
    }

    100% {
        transform: rotate(3deg) translateY(-25px);
    }
}

@keyframes galaxyWave3 {
    0% {
        transform: rotate(-2deg) translateY(0);
    }

    100% {
        transform: rotate(-2deg) translateY(-15px);
    }
}

@keyframes galaxyGlow {
    0% {
        opacity: 0.1;
        transform: rotate(-10deg) translateY(0);
    }

    100% {
        opacity: 0.3;
        transform: rotate(-10deg) translateY(-20px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-600px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rotateTrust {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

    50% {
        transform: translateY(0px);
    }
}

@keyframes glowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes btnGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-800px) translateX(200px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .login-container {
        padding: 2rem;
        margin: 1rem;
        border-radius: 15px;
        animation: none; /* Remove animation on mobile */
    }

        .login-container:hover {
            transform: none;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .form-control {
        height: 45px;
        padding: 0 12px 0 40px;
    }

    .form-group i.input-icon {
        left: 12px;
        font-size: 16px;
        height: 45px;
    }

    .btn-login {
        padding: 12px;
    }

    /* Mobile logo size */
    .logo {
        max-width: 200px;
    }
}
