/* =================================
   MODERN LOGIN PAGE STYLES
   ================================= */

:root {
    /* Login Page Color Variables - Light Mode Only */
    --login-bg-dark: #ffffff;
    --login-bg-darker: #f8fafc;
    --login-text-primary: #0f172a;
    --login-text-secondary: #475569;
    --login-text-muted: #64748b;
    --login-border-color: #e2e8f0;
    --login-input-bg: #ffffff;
    --login-input-border: #cbd5e1;
    --login-input-focus: #4f46e5;
    --login-button-bg: #3b82f6;
    --login-button-hover: #2563eb;
    --login-button-active: #1d4ed8;
    --login-error-color: #ef4444;
    --login-success-color: #10b981;
    --login-link-color: #8b5cf6;
    --login-link-hover: #a78bfa;
    
    /* Spacing */
    --login-spacing-xs: 0.5rem;
    --login-spacing-sm: 1rem;
    --login-spacing-md: 1.5rem;
    --login-spacing-lg: 2rem;
    --login-spacing-xl: 3rem;
    --login-spacing-2xl: 4rem;
    
    /* Border Radius */
    --login-radius-sm: 0.5rem;
    --login-radius-md: 0.75rem;
    --login-radius-lg: 1rem;
    --login-radius-xl: 1.5rem;
    
    /* Shadows */
    --login-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --login-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --login-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --login-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --login-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================
   BASE STYLES & RESET
   ================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--login-text-primary);
    background: #ffffff;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =================================
   LOGIN PAGE LAYOUT
   ================================= */

.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .login-container {
        height: auto;
        min-height: 100vh;
    }
}

/* =================================
   LEFT PANEL - LOGIN FORM
   ================================= */

.login-form-panel {
    width: 40%;
    min-width: 400px;
    background: linear-gradient(135deg, var(--login-bg-dark) 0%, var(--login-bg-darker) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--login-spacing-xl);
    position: relative;
    z-index: 10;
    box-shadow: var(--login-shadow-xl);
}

/* Top Bar */
.login-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--login-spacing-2xl);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: var(--login-spacing-sm);
    text-decoration: none;
    color: var(--login-text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--login-text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: var(--login-bg-dark);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--login-text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: var(--login-spacing-sm);
    border-radius: var(--login-radius-md);
    transition: var(--login-transition);
    opacity: 0.8;
}

.theme-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Login Form */
.login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .login-form-container {
        justify-content: flex-start;
        padding-top: var(--login-spacing-lg);
        padding-bottom: var(--login-spacing-lg);
    }
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--login-spacing-xl);
    letter-spacing: -0.025em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--login-spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--login-spacing-sm);
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--login-text-secondary);
    margin-bottom: var(--login-spacing-xs);
}

.form-input {
    width: 100%;
    padding: var(--login-spacing-md);
    background: var(--login-input-bg);
    border: 2px solid var(--login-input-border);
    border-radius: var(--login-radius-md);
    color: var(--login-text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: var(--login-transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--login-text-muted);
    opacity: 0.7;
}

.form-input:focus {
    border-color: var(--login-input-focus);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: var(--login-input-bg);
}

.form-input.error {
    border-color: var(--login-error-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-input.success {
    border-color: var(--login-success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.error-message {
    color: var(--login-error-color);
    font-size: 12px;
    font-weight: 500;
    margin-top: var(--login-spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--login-spacing-xs);
}

.error-message i {
    font-size: 14px;
}

.success-message {
    color: var(--login-success-color);
    font-size: 12px;
    font-weight: 500;
    margin-top: var(--login-spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--login-spacing-xs);
}

.success-message i {
    font-size: 14px;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: var(--login-spacing-md);
    background: var(--login-button-bg);
    border: none;
    border-radius: var(--login-radius-md);
    color: var(--login-text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--login-transition);
    margin-top: var(--login-spacing-sm);
    position: relative;
    overflow: hidden;
}

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

.login-button:hover {
    background: var(--login-button-hover);
    transform: translateY(-2px);
    box-shadow: var(--login-shadow-md);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    background: var(--login-button-active);
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-button:disabled:hover {
    background: var(--login-button-bg);
    transform: none;
    box-shadow: none;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--login-spacing-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--login-text-secondary);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: var(--login-input-bg);
    border: 2px solid var(--login-input-border);
    border-radius: var(--login-radius-sm);
    position: relative;
    transition: var(--login-transition);
    flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
    border-color: var(--login-input-focus);
    background: var(--login-input-bg);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--login-input-focus);
    border-color: var(--login-input-focus);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Forgot Password Link */
.forgot-password {
    text-align: center;
    margin-top: var(--login-spacing-sm);
}

.forgot-link {
    color: var(--login-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--login-transition);
}

.forgot-link:hover {
    color: var(--login-text-secondary);
    text-decoration: underline;
}

/* Sign Up Link */
.signup-prompt {
    text-align: center;
    margin-top: var(--login-spacing-lg);
    font-size: 14px;
    color: var(--login-text-secondary);
}

.signup-link {
    color: var(--login-link-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--login-transition);
}

.signup-link:hover {
    color: var(--login-link-hover);
    text-decoration: underline;
}

/* =================================
   RIGHT PANEL - İSTANBUL BACKGROUND
   ================================= */

.login-background-panel {
    flex: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* İstanbul Skyline Overlay */
.istanbul-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 3;
}

/* İstanbul resmi kaldırıldı - sadece gradient background */
.istanbul-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    z-index: 1;
}

/* Yıldızlar */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #1e40af;
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle 3s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(30, 64, 175, 0.6);
}

.star:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 25%; left: 80%; animation-delay: 1s; }
.star:nth-child(3) { top: 35%; left: 40%; animation-delay: 2s; }
.star:nth-child(4) { top: 45%; left: 70%; animation-delay: 0.5s; }
.star:nth-child(5) { top: 55%; left: 15%; animation-delay: 1.5s; }
.star:nth-child(6) { top: 65%; left: 85%; animation-delay: 2.5s; }
.star:nth-child(7) { top: 75%; left: 30%; animation-delay: 1s; }
.star:nth-child(8) { top: 85%; left: 60%; animation-delay: 0.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(30, 64, 175, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(30, 64, 175, 0.3);
}

.floating-element:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 30%;
    right: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 60%;
    left: 25%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    width: 18px;
    height: 18px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Background Text kaldırıldı */

/* =================================
   FOOTER LINKS
   ================================= */

.login-footer {
    margin-top: var(--login-spacing-xl);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--login-spacing-lg);
    margin-bottom: var(--login-spacing-md);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--login-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--login-transition);
}

.footer-link:hover {
    color: var(--login-text-secondary);
}

.copyright {
    color: var(--login-text-muted);
    font-size: 12px;
    opacity: 0.8;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

/* Tablet */
@media (max-width: 1024px) {
    .login-form-panel {
        width: 45%;
        min-width: 350px;
        padding: var(--login-spacing-lg);
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .background-text h2 {
        font-size: 28px;
    }
    
    .background-text p {
        font-size: 14px;
        max-width: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .login-form-panel {
        width: 100%;
        min-width: auto;
        height: auto;
        min-height: 60vh;
        padding: var(--login-spacing-md);
        order: 2;
    }
    
    .login-background-panel {
        height: 40vh;
        order: 1;
    }
    
    .istanbul-skyline {
        height: 80%;
    }
    
    .istanbul-overlay {
        height: 80%;
    }
    
    /* Background Text kaldırıldı */
    
    .login-top-bar {
        margin-bottom: var(--login-spacing-lg);
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .login-title {
        font-size: 24px;
        margin-bottom: var(--login-spacing-lg);
    }
    
    .login-form {
        gap: var(--login-spacing-md);
    }
    
    .footer-links {
        gap: var(--login-spacing-md);
        justify-content: center;
    }
    
    .footer-link {
        font-size: 13px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
    }
    
    .forgot-link {
        font-size: 12px;
    }
    
    .signup-prompt {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .login-form-panel {
        height: auto;
        min-height: 65vh;
        padding: var(--login-spacing-sm);
    }
    
    .login-background-panel {
        height: 35vh;
    }
    
    .login-top-bar {
        margin-bottom: var(--login-spacing-md);
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .login-title {
        font-size: 20px;
        margin-bottom: var(--login-spacing-md);
    }
    
    .login-form {
        gap: var(--login-spacing-sm);
    }
    
    .form-input {
        padding: var(--login-spacing-sm);
        font-size: 14px;
    }
    
    .login-button {
        padding: var(--login-spacing-sm);
        font-size: 14px;
    }
    
    /* Background Text kaldırıldı */
    
    .checkbox-label {
        font-size: 12px;
    }
    
    .checkmark {
        width: 14px;
        height: 14px;
    }
    
    .forgot-link {
        font-size: 11px;
    }
    
    .signup-prompt {
        font-size: 12px;
    }
    
    .footer-links {
        gap: var(--login-spacing-sm);
        flex-direction: column;
        align-items: center;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .copyright {
        font-size: 11px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .login-form-panel {
        height: auto;
        min-height: 70vh;
        padding: var(--login-spacing-md);
    }
    
    .login-background-panel {
        height: 30vh;
    }
    
    .login-title {
        font-size: 22px;
        margin-bottom: var(--login-spacing-md);
    }
    
    .login-form {
        gap: var(--login-spacing-sm);
    }
    
    /* Background Text kaldırıldı */
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    .form-input,
    .login-button {
        min-height: 48px;
    }
    
    .theme-toggle {
        min-height: 48px;
        min-width: 48px;
    }
    
    .footer-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .istanbul-skyline {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2400 1600" fill="none"><defs><linearGradient id="sky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%230f172a;stop-opacity:1" /><stop offset="50%" style="stop-color:%231e3a8a;stop-opacity:1" /><stop offset="100%" style="stop-color:%233b82f6;stop-opacity:1" /></linearGradient></defs><rect width="2400" height="1600" fill="url(%23sky)"/><g fill="%230f172a" opacity="0.8"><!-- Galata Tower --><rect x="400" y="800" width="80" height="400" rx="40"/><rect x="420" y="760" width="40" height="80" rx="20"/><!-- Hagia Sophia --><rect x="600" y="900" width="160" height="300" rx="20"/><rect x="640" y="860" width="80" height="60" rx="30"/><!-- Blue Mosque --><rect x="900" y="940" width="140" height="260" rx="30"/><rect x="940" y="900" width="60" height="60" rx="30"/><!-- Modern Buildings --><rect x="1200" y="600" width="120" height="600" rx="10"/><rect x="1360" y="700" width="100" height="500" rx="10"/><rect x="1500" y="560" width="140" height="640" rx="10"/><rect x="1680" y="640" width="110" height="560" rx="10"/><rect x="1840" y="500" width="160" height="700" rx="10"/><rect x="2040" y="600" width="130" height="600" rx="10"/><rect x="2200" y="400" width="180" height="800" rx="10"/></g><!-- Bosphorus Bridge --><path d="M 0 1000 Q 1200 900 2400 1000" stroke="%23e5e7eb" stroke-width="16" fill="none" opacity="0.6"/><!-- Stars --><g fill="%23ffffff" opacity="0.8"><circle cx="300" cy="200" r="2"/><circle cx="600" cy="160" r="3"/><circle cx="900" cy="240" r="2"/><circle cx="1200" cy="180" r="3"/><circle cx="1500" cy="220" r="2"/><circle cx="1800" cy="140" r="3"/><circle cx="2100" cy="200" r="2"/></g></svg>');
    }
}

/* Print Styles */
@media print {
    .login-background-panel,
    .floating-elements,
    .background-text {
        display: none !important;
    }
    
    .login-form-panel {
        width: 100% !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .login-container {
        flex-direction: column !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .floating-element {
        animation: none !important;
    }
    
    .login-button::before {
        display: none !important;
    }
    
    .login-button:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */
/* Dark Mode Disabled - Force Light Mode */
:root {
    --login-bg-dark: #ffffff;
    --login-bg-darker: #f8fafc;
    --login-text-primary: #0f172a;
    --login-text-secondary: #475569;
    --login-text-muted: #64748b;
    --login-border-color: #e2e8f0;
    --login-input-bg: #ffffff;
    --login-input-border: #cbd5e1;
    --login-input-focus: #4f46e5;
    --login-button-bg: #3b82f6;
    --login-button-hover: #2563eb;
    --login-button-active: #1d4ed8;
    --login-error-color: #ef4444;
    --login-success-color: #10b981;
    --login-link-color: #8b5cf6;
    --login-link-hover: #a78bfa;
}

/* Focus Management */
.login-button:focus,
.form-input:focus,
.theme-toggle:focus,
.signup-link:focus,
.footer-link:focus {
    outline: 3px solid var(--login-input-focus);
    outline-offset: 2px;
}

/* Loading States */
.login-button.loading {
    position: relative;
    color: transparent;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--login-text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .login-form-panel {
        height: auto;
        min-height: 70vh;
        padding: 8px;
    }
    
    .login-background-panel {
        height: 30vh;
    }
    
    .login-top-bar {
        margin-bottom: 8px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .login-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .login-form {
        gap: 8px;
    }
    
    .form-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .login-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .checkbox-label {
        font-size: 11px;
    }
    
    .checkmark {
        width: 12px;
        height: 12px;
    }
    
    .forgot-link {
        font-size: 10px;
    }
    
    .signup-prompt {
        font-size: 11px;
    }
    
    /* Background Text kaldırıldı */
    
    .footer-links {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-link {
        font-size: 11px;
    }
    
    .copyright {
        font-size: 10px;
    }
}
