﻿:root {
    --primary-dark: #0a0f1c;
    --secondary-dark: #111827;
    --card-dark: #1a2235;
    --primary-blue: #1e40af;
    --accent-blue: #3b82f6;
    --electric-blue: #06b6d4;
    --neon-blue: #00d4ff;
    --dark-gradient: linear-gradient(135deg, #0a0f1c 0%, #111827 50%, #1a2235 100%);
    --blue-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    --electric-gradient: linear-gradient(135deg, #06b6d4 0%, #00d4ff 50%, #3b82f6 100%);
    --glass-bg: rgba(10, 15, 28, 0.9);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-gradient);
    background-image: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(30, 64, 175, 0.15) 0%, transparent 50%), var(--dark-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    /* Animated background elements */
    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 25%), radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 25%);
        animation: float 20s ease-in-out infinite;
        z-index: 0;
    }

.login-container {
    max-width: 520px; /* Genişlik daha da artırıldı */
    width: 100%;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-box {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--glass-border), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

    .login-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--electric-gradient);
        animation: shimmer 3s ease-in-out infinite;
    }

    .login-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

.login-logo {
    text-align: center;
    padding: 40px 30px 25px; /* Padding azaltıldı */
    background: var(--blue-gradient);
    margin: 0;
    position: relative;
    overflow: hidden;
}

    .login-logo::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        animation: shine 6s ease-in-out infinite;
    }

    .login-logo a {
        font-size: 32px;
        font-weight: 800;
        color: white;
        text-decoration: none;
        display: block;
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        letter-spacing: -0.5px;
        position: relative;
        z-index: 1;
    }

        .login-logo a small {
            display: block;
            font-size: 15px;
            font-weight: 500;
            margin-top: 10px; /* Margin azaltıldı */
            opacity: 0.9;
            letter-spacing: 0.5px;
        }

    .login-logo .brand-icon {
        font-size: 36px;
        margin-bottom: 12px; /* Margin azaltıldı */
        display: inline-block;
        background: rgba(255,255,255,0.2);
        padding: 15px;
        border-radius: 50%;
        backdrop-filter: blur(10px);
        animation: pulse 2s ease-in-out infinite;
    }

.login-card-body {
    padding: 35px 40px; /* Padding azaltıldı */
    background: transparent;
}

.login-box-msg {
    text-align: center;
    font-size: 16px; /* Font boyutu küçültüldü */
    color: #e2e8f0;
    margin-bottom: 25px; /* Margin azaltıldı */
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

    .login-box-msg i {
        color: var(--neon-blue);
        margin-right: 10px;
        font-size: 18px;
    }

.input-group {
    margin-bottom: 22px; /* Margin azaltıldı */
    position: relative;
}

/* Input Group Tam Düzeltme */
.form-control {
    height: 52px; /* Yükseklik biraz azaltıldı */
    border-radius: 12px;
    border: 2px solid #1f2937;
    font-size: 15px;
    padding: 0 55px; /* Sağ ve sol padding eşitlendi */
    transition: all 0.3s ease;
    background: rgba(26, 34, 53, 0.9);
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
    width: 100%;
    display: block;
}

    .form-control::placeholder {
        color: #6b7280;
        font-weight: 400;
    }

    .form-control:focus {
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), inset 0 1px 2px rgba(255,255,255,0.05);
        background: rgba(26, 34, 53, 0.95);
        color: white;
        transform: translateY(-2px);
    }

/* Sol ikon için */
.input-group-prepend {
    position: absolute;
    left: 0;
    top: 0;
    height: 52px;
    background: transparent;
    border: none;
    z-index: 10;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sağ ikon için - TAM DÜZELTME */
.input-group-append {
    position: absolute;
    right: 0;
    top: 0;
    height: 52px;
    background: transparent;
    border: none;
    z-index: 10;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group-text {
    color: var(--accent-blue);
    font-size: 16px;
    transition: all 0.3s ease;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.form-control:focus ~ .input-group-append .input-group-text,
.form-control:focus ~ .input-group-prepend .input-group-text {
    color: var(--neon-blue);
    transform: scale(1.1);
}

.btn-primary {
    background: var(--electric-gradient);
    border: none;
    border-radius: 12px;
    height: 52px; /* Yükseklik azaltıldı */
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    margin-top: 5px; /* Üst margin eklendi */
}

    .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);
        transition: left 0.6s;
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(6, 182, 212, 0.5), 0 0 0 1px rgba(255,255,255,0.2);
        background: var(--blue-gradient);
    }

        .btn-primary:hover::before {
            left: 100%;
        }

    .btn-primary:active {
        transform: translateY(-1px);
    }

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px; /* Margin azaltıldı */
}

.icheck-primary {
    margin-right: 10px;
}

    .icheck-primary input[type="checkbox"] {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        border: 2px solid #374151;
        background: rgba(26, 34, 53, 0.8);
    }

        .icheck-primary input[type="checkbox"]:checked {
            background: var(--accent-blue);
            border-color: var(--accent-blue);
        }

    .icheck-primary label {
        color: #d1d5db;
        font-weight: 500;
        font-size: 14px;
    }

.forgot-password {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

    .forgot-password:hover {
        color: white;
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        transform: translateX(3px);
    }

.system-info {
    text-align: center;
    margin-top: 25px; /* Margin azaltıldı */
    padding-top: 20px; /* Padding azaltıldı */
    border-top: 1px solid #1f2937;
}

    .system-info p {
        color: #9ca3af;
        font-size: 13px;
        margin: 6px 0; /* Margin azaltıldı */
    }

/* Feature Badges - Yanyana */
.feature-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px; /* Margin azaltıldı */
    flex-wrap: wrap;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    background: var(--electric-gradient);
    color: white;
    padding: 8px 16px; /* Padding azaltıldı */
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

    .feature-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
    }

    .feature-badge i {
        margin-right: 6px;
        font-size: 13px; /* Font boyutu küçültüldü */
    }

.validation-summary {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    padding: 15px; /* Padding azaltıldı */
    margin-top: 20px; /* Margin azaltıldı */
    backdrop-filter: blur(10px);
}

    .validation-summary ul {
        margin: 0;
        padding-left: 20px;
        color: #fecaca;
    }

.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
    }

    .login-card-body {
        padding: 30px 25px; /* Padding azaltıldı */
    }

    .login-logo {
        padding: 30px 20px 20px; /* Padding azaltıldı */
    }

        .login-logo a {
            font-size: 28px;
        }

        .login-logo .brand-icon {
            font-size: 32px;
            padding: 12px;
            margin-bottom: 10px;
        }

    .remember-forgot {
        flex-direction: column;
        gap: 15px; /* Gap azaltıldı */
        text-align: center;
    }

    .feature-badges {
        flex-direction: column;
        gap: 8px;
    }

    .feature-badge {
        min-width: auto;
        width: 100%;
    }

    .form-control {
        height: 50px;
        font-size: 14px;
        padding: 0 50px;
    }

    .input-group-text,
    .input-group-append,
    .input-group-prepend {
        padding: 0 15px;
    }
}

/* Tablet responsive */
@media (max-width: 768px) and (min-width: 577px) {
    .login-container {
        max-width: 460px;
    }

    .login-card-body {
        padding: 35px 30px; /* Padding azaltıldı */
    }
}

/* Loading animation for submit button */
.btn-loading {
    position: relative;
    pointer-events: none;
}

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        border: 2px solid rgba(255,255,255,0.8);
        border-radius: 50%;
        border-right-color: transparent;
        animation: spin 0.75s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Error state for inputs */
.input-error .form-control {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.input-error .input-group-text {
    color: #ef4444;
}

/* Success state for inputs */
.input-success .form-control {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.input-success .input-group-text {
    color: #10b981;
}

/* Floating particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(59, 130, 246, 0.25);
    border-radius: 50%;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

