/* Giriş Sayfası - Dikey Modern Tasarım */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f172a 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(200, 200, 200, 0.05) 2px,
            rgba(200, 200, 200, 0.05) 4px
        );
    z-index: 0;
    pointer-events: none;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Arka Plan Pattern - Geometrik Desen */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(200, 200, 200, 0.1) 2px,
            rgba(200, 200, 200, 0.1) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(200, 200, 200, 0.08) 2px,
            rgba(200, 200, 200, 0.08) 4px
        );
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.4;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Ana Wrapper */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Login Card */
.login-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Image */
.login-header-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #0a0e27;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

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

.login-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    border: 2px solid rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

.image-overlay {
    display: none;
}

.login-header-image::before {
    content: '💻';
    position: absolute;
    font-size: 60px;
    opacity: 0.2;
    z-index: 1;
}

/* Title Section */
.login-title-section {
    text-align: center;
    padding: 18px 30px 12px;
    background: transparent;
}

.login-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.login-subtitle {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    opacity: 0.9;
}

/* Error Alert */
.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 9px 16px;
    margin: 0 30px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Form */
.login-form {
    padding: 0 30px 12px;
}

.input-field {
    position: relative;
    margin-bottom: 12px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-field input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 13px;
    transition: all 0.3s ease;
}

.input-field input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.2),
        0 4px 15px rgba(99, 102, 241, 0.3);
}

.input-field input:focus ~ .input-icon {
    color: #6366f1;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.input-field input::placeholder {
    color: #64748b;
}

/* Buttons */
.btn-login-primary {
    width: 100%;
    padding: 12px 18px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    letter-spacing: 0.2px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}


.btn-login-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background: #7c3aed;
}

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

.free-login-form {
    padding: 0 30px 16px;
}

.btn-login-free {
    width: 100%;
    padding: 12px 18px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}


.btn-login-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: #20ba5a;
}

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

.btn-login-free i {
    font-size: 14px;
}

/* Footer */
.login-footer {
    background: transparent;
    padding: 16px 30px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    text-align: center;
}

.footer-text {
    color: #94a3b8;
    font-size: 10px;
    margin: 0;
    font-weight: 400;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .login-card {
        border-radius: 16px;
    }
    
    .login-header-image {
        height: 180px;
        padding: 10px;
    }
    
    .login-title {
        font-size: 17px;
    }
    
    .login-subtitle {
        font-size: 11px;
    }
    
    .login-title-section {
        padding: 16px 25px 10px;
    }
    
    .login-form,
    .free-login-form {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .alert-error {
        margin-left: 25px;
        margin-right: 25px;
        font-size: 11px;
        padding: 8px 14px;
    }
    
    .login-footer {
        padding: 14px 25px;
    }
    
    .footer-text {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 12px 10px;
    }
    
    .login-header-image {
        height: 150px;
        padding: 8px;
    }
    
    .login-title {
        font-size: 16px;
    }
    
    .login-subtitle {
        font-size: 10px;
    }
    
    .login-title-section {
        padding: 14px 20px 8px;
    }
    
    .input-field input {
        padding: 11px 12px 11px 40px;
        font-size: 12px;
    }
    
    .input-icon {
        font-size: 13px;
        left: 12px;
    }
    
    .btn-login-primary,
    .btn-login-free {
        padding: 11px 16px;
        font-size: 12px;
    }
    
    .btn-login-free i {
        font-size: 13px;
    }
    
    .login-form,
    .free-login-form {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .alert-error {
        margin-left: 20px;
        margin-right: 20px;
        font-size: 10px;
    }
    
    .login-footer {
        padding: 12px 20px;
    }
    
    .footer-text {
        font-size: 9px;
    }
}
