﻿/* =============================================================
 * 🔐 LOGIN PAGE STYLES - MODERN & ELEGANT
 * Profesyonel ve şık giriş sayfası tasarımı
 * ============================================================= */

/* ========================================== */
/* 🎨 BODY & BACKGROUND */
/* ========================================== */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating particles effect */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* ========================================== */
/* 📦 LOGIN WRAPPER */
/* ========================================== */
.login-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 920px;
    max-width: 95%;
    min-height: 580px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================== */
/* 📝 LOGIN BOX (Sol taraf) */
/* ========================================== */
.login-box {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

    .login-box h2 {
        font-weight: 700;
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 2rem;
        text-align: center;
        letter-spacing: -0.5px;
    }

    /* Subtitle (optional) */
    .login-box p.subtitle {
        text-align: center;
        color: #6c757d;
        font-size: 0.9rem;
        margin-bottom: 2rem;
        font-weight: 500;
    }

    /* ========================================== */
    /* 🔔 ALERTS */
    /* ========================================== */
    .login-box .alert {
        border-radius: 8px;
        border: none;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem;
    }

    .login-box .alert-danger {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: #fff;
    }

    .login-box .alert-success {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: #fff;
    }

    /* ========================================== */
    /* 📝 FORM INPUTS */
    /* ========================================== */
    .login-box .form-label {
        font-weight: 600;
        color: #495057;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .login-box .form-control {
        border: 2px solid #e9ecef;
        border-radius: 8px;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        background: #f8f9fa;
        width: 100%;
    }

        .login-box .form-control:hover {
            border-color: #ced4da;
            background: #fff;
        }

        .login-box .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
            background: #fff;
            outline: none;
        }

        .login-box .form-control::placeholder {
            color: #adb5bd;
            font-style: italic;
        }

    /* ========================================== */
    /* 🔗 LINKS */
    /* ========================================== */
    .login-box a {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.875rem;
        transition: color 0.2s ease;
    }

        .login-box a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

    .login-box .text-muted {
        color: #6c757d !important;
        font-weight: 500;
    }

        .login-box .text-muted:hover {
            color: #495057 !important;
        }

    /* ========================================== */
    /* 🔘 SUBMIT BUTTON */
    /* ========================================== */
    .login-box .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        border-radius: 8px;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        cursor: pointer;
        width: 100%;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        .login-box .btn-primary:hover {
            background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }

        .login-box .btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

/* ========================================== */
/* 🖼️ LOGIN IMAGE (Sağ taraf) */
/* ========================================== */
.login-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    overflow: hidden;
}

    /* Background image overlay */
    .login-image.has-bg {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%), url('/images/login-side.jpg') no-repeat center center;
        background-size: cover;
    }

    /* Decorative shapes */
    .login-image::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        animation: pulse 8s ease-in-out infinite;
    }

    .login-image::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -20%;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        animation: pulse 10s ease-in-out infinite reverse;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ========================================== */
/* 📄 IMAGE CONTENT */
/* ========================================== */
.login-image-content {
    position: relative;
    z-index: 2;
    max-width: 380px;
}

    .login-image-content h3 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        line-height: 1.2;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .login-image-content p {
        font-size: 1.1rem;
        font-weight: 400;
        line-height: 1.6;
        opacity: 0.95;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }

/* ========================================== */
/* 🚀 ANIMATED ICON */
/* ========================================== */
.animated-icon {
    margin-bottom: 2rem;
    animation: iconFloat 3s ease-in-out infinite;
}

/* Icon circles rotation */
.icon-circle-outer {
    animation: rotateClockwise 20s linear infinite;
    transform-origin: center;
}

.icon-circle-middle {
    animation: rotateCounterClockwise 15s linear infinite;
    transform-origin: center;
}

/* Rocket icon pulse */
.rocket-icon {
    animation: rocketPulse 2s ease-in-out infinite;
    transform-origin: center;
}

/* Sparks animation */
.spark {
    animation: sparkle 1.5s ease-in-out infinite;
}

.spark-1 {
    animation-delay: 0s;
}

.spark-2 {
    animation-delay: 0.5s;
}

.spark-3 {
    animation-delay: 1s;
}

/* Keyframes */
@keyframes rotateClockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCounterClockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes rocketPulse {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    50% {
        transform: scale(1.05) translateY(-3px);
        opacity: 0.9;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================== */
/* 🟦 MODAL (Şifremi Unuttum) */
/* ========================================== */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    border: none;
    padding: 1.25rem 1.5rem;
}

    .modal-header .modal-title {
        font-weight: 700;
        font-size: 1.25rem;
    }

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

        .modal-header .btn-close:hover {
            opacity: 1;
        }

.modal-body {
    padding: 1.5rem;
}

    .modal-body .form-label {
        font-weight: 600;
        color: #495057;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .modal-body .form-control {
        border: 2px solid #e9ecef;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }

        .modal-body .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
            background: #fff;
            outline: none;
        }

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

    .modal-footer .btn {
        padding: 0.6rem 1.5rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .modal-footer .btn-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

        .modal-footer .btn-primary:hover {
            background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
        }

    .modal-footer .btn-secondary {
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
        border: none;
        color: #fff;
    }

        .modal-footer .btn-secondary:hover {
            background: linear-gradient(135deg, #5a6268 0%, #545b62 100%);
            transform: translateY(-2px);
        }

/* ========================================== */
/* 📱 RESPONSIVE */
/* ========================================== */
@media (max-width: 992px) {
    .login-wrapper {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        width: 95%;
        max-width: 500px;
        min-height: auto;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

        .login-box h2 {
            font-size: 1.6rem;
        }

    /* Sağ tarafı gizle */
    .login-image {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem 1rem;
    }

        .login-box h2 {
            font-size: 1.4rem;
        }

        .login-box .btn-primary {
            font-size: 0.9rem;
            padding: 0.75rem;
        }

    .login-wrapper {
        border-radius: 12px;
    }
}

/* ========================================== */
/* ✨ EXTRA ANIMATIONS */
/* ========================================== */
.login-box form {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================== */
/* 🎯 ACCESSIBILITY */
/* ========================================== */
.login-box .form-control:focus-visible,
.login-box .btn-primary:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
