/* login.css - Açık Tema ÇalışkanHome Login Design */

:root {
    /* Primary Colors - Daha açık tonlar */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --primary-dark: #1d4ed8;
    
    /* Secondary Colors - Daha açık */
    --secondary-color: #6366f1;
    --secondary-hover: #4f46e5;
    
    /* Neutral Colors - Açık tema */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Status Colors */
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --error-light: #fef2f2;
    
    /* Shadows - Daha yumuşak */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    /* Borders */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loading-content {
    text-align: center;
    color: var(--gray-700);
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.loading-logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    animation: pulse 2s infinite;
    box-shadow: var(--shadow-md);
}

.loading-logo h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--gray-800);
}

.loading-spinner {
    margin: 30px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-text {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 500;
    color: var(--gray-600);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Background Animation */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 50%;
    animation: float 20s infinite linear;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 70%;
    animation-delay: -10s;
    animation-duration: 30s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    top: 70%;
    left: 20%;
    animation-delay: -15s;
    animation-duration: 18s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 50%;
    animation-delay: -8s;
    animation-duration: 35s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.6;
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.9) 0%, 
        rgba(226, 232, 240, 0.9) 100%);
    backdrop-filter: blur(1px);
}

/* Main Container */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 40px 35px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Header Section */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.brand-section {
    margin-bottom: 25px;
}

.logo-container {
    margin-bottom: 15px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.welcome-section {
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.welcome-subtitle {
    font-size: 15px;
    color: var(--gray-600);
    font-weight: 400;
}

/* Alert Styles */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.alert-error {
    background: var(--error-light);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-icon {
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    width: 100%;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.form-label i {
    font-size: 14px;
    width: 16px;
    color: var(--gray-500);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--gray-900);
    transition: all var(--transition-normal);
    outline: none;
    font-family: inherit;
}

.form-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.input-wrapper.focused .form-input {
    border-color: var(--primary-color);
}

.input-wrapper.focused .form-label {
    color: var(--primary-color);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
    border-radius: 1px;
}

.input-wrapper.focused .input-border {
    width: 100%;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 16px;
    padding: 8px;
    border-radius: 6px;
    transition: all var(--transition-fast);
    z-index: 2;
}

.password-toggle:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.password-toggle.active {
    color: var(--primary-color);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 5px;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    background: var(--white);
}

.checkbox-mark i {
    font-size: 12px;
    color: var(--white);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-mark i {
    opacity: 1;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

/* Forgot Password Link */
.forgot-password {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
}

.login-button:active {
    transform: translateY(0);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity var(--transition-fast);
}

.button-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.login-button.loading .button-content {
    opacity: 0;
}

.login-button.loading .button-loading {
    opacity: 1;
}

.login-button.loading {
    cursor: not-allowed;
}

/* Loading Dots */
.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
}

.footer-text {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .login-card {
        padding: 30px 25px;
        margin-top: 20px;
    }
    
    .brand-logo {
        width: 56px;
        height: 56px;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .welcome-title {
        font-size: 22px;
    }
    
    .form-input {
        padding: 14px 18px;
        font-size: 16px; /* iOS zoom fix */
    }
    
    .login-button {
        padding: 16px 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .loading-logo img {
        width: 45px;
        height: 45px;
    }
    
    .loading-logo h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 10px;
        padding-top: 30px;
    }
    
    .login-card {
        padding: 25px 20px;
        border-radius: var(--border-radius);
    }
    
    .brand-name {
        font-size: 22px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .shape {
        display: none; /* Hide floating shapes on small screens */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-card {
        background: var(--white);
        border: 2px solid var(--gray-800);
    }
    
    .form-input {
        border-width: 2px;
    }
    
    .alert-error {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .shape {
        animation: none;
    }
    
    .floating-shapes {
        display: none;
    }
}

/* Focus visible styles for accessibility */
.login-button:focus-visible,
.forgot-password:focus-visible,
.checkbox-wrapper:focus-visible,
.password-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .background-container,
    .floating-shapes,
    .loading-screen {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .login-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

/* Additional Light Theme Enhancements */
.form-input:hover {
    border-color: var(--gray-300);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-card {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Subtle patterns for visual interest */
.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    pointer-events: none;
    border-radius: var(--border-radius-xl);
}