/* Login Page Styles - Professional Financial Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #035865 0%, #0891b2 50%, #0284c7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Enhanced Professional Animated Background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3Cpath d='M20 20h40v40H20z' fill-opacity='0.01'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 25s infinite linear;
}

body::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, transparent 100%);
    animation: rotate 60s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-80px, -80px); }
}

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

/* Enhanced Professional Login Container */
.login-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 
        0 32px 64px rgba(3, 88, 101, 0.25),
        0 16px 32px rgba(3, 88, 101, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* Logo Section */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #035865, #0891b2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 24px rgba(3, 88, 101, 0.4),
        0 4px 12px rgba(3, 88, 101, 0.2);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

.logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
}

.logo-grid span {
    background-color: white;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

.logo-grid span:nth-child(1) { animation-delay: 0s; }
.logo-grid span:nth-child(2) { animation-delay: 0.2s; }
.logo-grid span:nth-child(3) { animation-delay: 0.4s; }
.logo-grid span:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 50%, 100% { opacity: 1; }
    25% { opacity: 0.5; }
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #035865, #0891b2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(3, 88, 101, 0.1);
}

.login-subtitle {
    color: #475569;
    font-size: 17px;
    font-weight: 500;
    margin-top: 12px;
    letter-spacing: 0.2px;
}

/* Form Styles */
.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #035865;
    background: white;
    box-shadow: 
        0 0 0 4px rgba(3, 88, 101, 0.12),
        0 4px 12px rgba(3, 88, 101, 0.08);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    /* Efekt kaldırıldı */
}

/* Enhanced Professional Login Button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #035865 0%, #0891b2 50%, #0284c7 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 24px rgba(3, 88, 101, 0.3),
        0 4px 12px rgba(3, 88, 101, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 15px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.login-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.login-btn:hover::before {
    /* Efekt kaldırıldı */
}

.login-btn:hover {
    /* Efekt kaldırıldı */
}

.login-btn:active {
    /* Efekt kaldırıldı */
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

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

/* Remember Me */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #14b8a6;
    cursor: pointer;
}

.remember-me label {
    color: #374151;
    cursor: pointer;
    font-weight: 500;
}

.forgot-password {
    color: #035865;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #035865, #0891b2);
    transition: width 0.3s ease;
}

.forgot-password:hover {
    color: #0891b2;
}

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

/* Loading State */
.login-btn.loading {
    pointer-events: none;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Professional Footer */
.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(3, 88, 101, 0.1);
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.login-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #035865, transparent);
}

.login-footer a {
    color: #035865;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.login-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0891b2;
    transition: width 0.3s ease;
}

.login-footer a:hover {
    color: #0891b2;
}

.login-footer a:hover::after {
    width: 100%;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .login-container {
        margin: 0;
        padding: 36px 32px;
        max-width: 100%;
        border-radius: 20px;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
    }
    
    .logo-grid {
        width: 20px;
        height: 20px;
        gap: 3px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .login-subtitle {
        font-size: 16px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* iOS zoom prevention */
    }
    
    .login-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .logo-text {
        font-size: 26px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .login-btn {
        padding: 15px 18px;
        font-size: 14px;
    }
    
    .form-group.has-icon .form-input {
        padding-left: 40px;
    }
}

/* Dark Theme Support - Ana uygulamayla uyumlu */
.dark-theme,
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    }
    
    .login-container {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
    }
    
    .logo-text {
        color: #f1f5f9;
        background: linear-gradient(135deg, #176571, #10b981);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .login-subtitle {
        color: #94a3b8;
    }
    
    .form-label {
        color: #e2e8f0;
    }
    
    .form-input {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .form-input:focus {
        border-color: #176571;
        background: #475569;
        box-shadow: 
            0 0 0 4px rgba(23, 101, 113, 0.12),
            0 4px 12px rgba(23, 101, 113, 0.08);
    }
    
    .form-input::placeholder {
        color: #94a3b8;
    }
    
    .remember-me label {
        color: #cbd5e1;
    }
    
    .forgot-password {
        color: #176571;
    }
    
    .forgot-password:hover {
        color: #10b981;
    }
    
    .password-toggle {
        color: #94a3b8;
    }
    
    .password-toggle:hover {
        color: #cbd5e1;
    }
    
    .security-info {
        background: rgba(23, 101, 113, 0.1);
        border-color: rgba(23, 101, 113, 0.2);
        color: #10b981;
    }
    
    .login-footer {
        color: #94a3b8;
        border-top-color: rgba(23, 101, 113, 0.2);
    }
    
    .login-footer a {
        color: #176571;
    }
    
    .login-footer a:hover {
        color: #10b981;
    }
    
    .alert-error {
        background: rgba(239, 68, 68, 0.1);
        color: #f87171;
        border-color: rgba(239, 68, 68, 0.2);
    }
    
    .alert-success {
        background: rgba(16, 185, 129, 0.1);
        color: #34d399;
        border-color: rgba(16, 185, 129, 0.2);
    }
    
    .alert-warning {
        background: rgba(245, 158, 11, 0.1);
        color: #fbbf24;
        border-color: rgba(245, 158, 11, 0.2);
    }
}

/* Dark theme class support */
.dark-theme body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.dark-theme .login-container {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.dark-theme .logo-text {
    color: #f1f5f9;
    background: linear-gradient(135deg, #176571, #10b981);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-theme .login-subtitle {
    color: #94a3b8;
}

.dark-theme .form-label {
    color: #e2e8f0;
}

.dark-theme .form-input {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

.dark-theme .form-input:focus {
    border-color: #176571;
    background: #475569;
    box-shadow: 
        0 0 0 4px rgba(23, 101, 113, 0.12),
        0 4px 12px rgba(23, 101, 113, 0.08);
}

.dark-theme .form-input::placeholder {
    color: #94a3b8;
}

.dark-theme .remember-me label {
    color: #cbd5e1;
}

.dark-theme .forgot-password {
    color: #176571;
}

.dark-theme .forgot-password:hover {
    color: #10b981;
}

.dark-theme .password-toggle {
    color: #94a3b8;
}

.dark-theme .password-toggle:hover {
    color: #cbd5e1;
}

.dark-theme .security-info {
    background: rgba(23, 101, 113, 0.1);
    border-color: rgba(23, 101, 113, 0.2);
    color: #10b981;
}

.dark-theme .login-footer {
    color: #94a3b8;
    border-top-color: rgba(23, 101, 113, 0.2);
}

.dark-theme .login-footer a {
    color: #176571;
}

.dark-theme .login-footer a:hover {
    color: #10b981;
}

.dark-theme .alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.dark-theme .alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.dark-theme .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Modern glassmorphism effect for high-end devices */
@media (min-width: 1024px) and (min-height: 768px) {
    .login-container {
        backdrop-filter: blur(24px);
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 
            0 48px 80px rgba(3, 88, 101, 0.25),
            0 24px 40px rgba(3, 88, 101, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .login-btn:hover {
        transform: translateY(-4px);
        box-shadow: 
            0 20px 40px rgba(3, 88, 101, 0.4),
            0 12px 24px rgba(3, 88, 101, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

/* Enhanced Security Badge */
.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(3, 88, 101, 0.05), rgba(8, 145, 178, 0.03));
    border-radius: 12px;
    font-size: 13px;
    color: #035865;
    border: 1px solid rgba(3, 88, 101, 0.1);
    font-weight: 600;
}

.security-info i {
    font-size: 16px;
    background: linear-gradient(135deg, #035865, #0891b2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Input Icons */
.form-group.has-icon {
    position: relative;
}

.form-group.has-icon .form-input {
    padding-left: 44px;
}

.form-group.has-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group.has-icon .form-input:focus + .input-icon {
    color: #035865;
    transform: translateY(-50%) scale(1.1);
}
