/* ============================================
   ListsGenie Login Page - Revize Edilmiş CSS
   ============================================ */

/* ==================== Reset & Variables ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #0364ff;
    --primary-dark: #0251d9;
    --primary-darker: #0242c7;
    --secondary: #10b981;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Neutrals */
    --black: #0f172a;
    --dark: #0f172a;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-success: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    --gradient-danger: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    
    /* Borders & Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Layout */
    --nav-height: 60px;
    --max-width: 1200px;
    --mobile-breakpoint: 768px;
    --tablet-breakpoint: 1024px;
    
    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
    --z-notification: 700;
}

/* ==================== Base Styles ==================== */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark);
    background: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

 /* ==================== Navigation - Dashboard Style ==================== */
 nav {
     position: fixed;
     top: 0;
     width: 100%;
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(10px);
     z-index: 1000;
     padding: 1rem 0;
     transition: all 0.3s ease;
     border-bottom: 1px solid rgba(0, 0, 0, 0.05);
 }
 
 .nav-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     min-height: 70px;
 }

 .logo {
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--primary);
     text-decoration: none;
     display: flex;
     align-items: center;
     gap: 0.5rem;
     position: relative;
     z-index: 10;
 }
 
 .logo img {
     height: 45px;
     width: auto;
     max-width: 180px;
     object-fit: contain;
     margin-right: 0.75rem;
 }

 /* Desktop Navigation */
 .nav-links {
     display: flex;
     gap: 2rem;
     align-items: center;
 }
 
 .nav-links a {
     color: var(--dark);
     text-decoration: none;
     font-weight: 500;
     transition: color 0.3s ease;
 }
 
 .nav-links a:hover {
     color: var(--primary);
 }
 
  .nav-links .secondary-button:hover {
     color: white !important;
 }
 
 .nav-links .cta-button:hover {
     color: white !important;
 }
 
 /* Navigation Buttons */
 .secondary-button {
     background: transparent;
     color: var(--primary);
     padding: 0.75rem 1.5rem;
     border-radius: 8px;
     text-decoration: none;
     font-weight: 600;
     border: 2px solid var(--primary);
     transition: all 0.3s ease;
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
 }
 
 .secondary-button:hover {
     background: var(--primary);
     color: white;
     transform: translateY(-2px);
     box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
 }
 
 .cta-button {
     background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
     color: white !important;
     padding: 1rem 2rem;
     border-radius: 12px;
     text-decoration: none;
     font-weight: 700;
     font-size: 1rem;
     transition: all 0.3s ease;
     display: inline-block;
     position: relative;
     overflow: hidden;
     border: none;
     cursor: pointer;
     text-transform: none;
     letter-spacing: 0.5px;
     box-shadow: 0 8px 25px rgba(3, 100, 255, 0.25);
     margin-top: auto;
     text-shadow: none;
 }
 
 .cta-button:hover {
     background: linear-gradient(135deg, var(--primary-dark) 0%, #0242c7 100%);
     color: white !important;
     transform: translateY(-2px);
     box-shadow: 0 12px 30px rgba(3, 100, 255, 0.4);
 }

/* Hamburger Menu - Modern UX Design */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: 2px solid transparent;
    padding: 0;
    z-index: calc(var(--z-sticky) + 1);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.hamburger:hover {
    background: var(--light-gray);
}

.hamburger:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hamburger .hamburger-box {
    width: 24px;
    height: 20px;
    display: inline-block;
    position: relative;
    margin: auto;
}

.hamburger .hamburger-inner {
    display: block;
    position: absolute;
    width: 24px;
    height: 3px;
    background: var(--black);
    border-radius: 3px;
    top: 50%;
    margin-top: -1.5px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger .hamburger-inner::before,
.hamburger .hamburger-inner::after {
    content: '';
    display: block;
    position: absolute;
    width: 24px;
    height: 3px;
    background: var(--black);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger .hamburger-inner::before {
    top: -8px;
}

.hamburger .hamburger-inner::after {
    bottom: -8px;
}

/* Hamburger Animation - Smooth Transform */
.hamburger.active .hamburger-inner {
    background: transparent;
}

.hamburger.active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--primary);
}

.hamburger.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
    background: var(--primary);
}

/* Mobile Menu Icon Indicator */
.hamburger::after {
    content: 'MENU';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.hamburger:hover::after {
    opacity: 1;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-nav-overlay.show {
    display: block;
    opacity: 1;
}

/* ==================== Login Section ==================== */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    padding-top: calc(var(--spacing-xl) + 90px); /* Fixed nav için alan */
}

.login-box {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    animation: slideUp var(--transition-slow);
}

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

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

.login-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.login-subtitle {
    color: var(--gray);
    font-size: var(--font-size-base);
}

/* ==================== Form Elements ==================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    background: var(--white);
    font-family: inherit;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 100, 255, 0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: var(--spacing-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.toggle-password:hover {
    color: var(--dark);
    background: rgba(0, 0, 0, 0.05);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.remember-me label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: text-decoration var(--transition-fast);
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ==================== Buttons ==================== */
.login-button,
.modal-button {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: var(--spacing-md);
    position: relative;
    min-height: 48px;
}

.login-button:hover:not(.loading),
.modal-button:hover:not(.loading) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(3, 100, 255, 0.3);
}

.login-button:active:not(.loading),
.modal-button:active:not(.loading) {
    transform: translateY(0);
}

.login-button.loading,
.modal-button.loading {
    background: var(--primary) !important;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
    transform: none !important;
}

.login-button.loading::after,
.modal-button.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: var(--border-radius-md);
    z-index: 0;
}

/* Google Login */
.google-login {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--dark);
    text-decoration: none;
    margin-bottom: var(--spacing-md);
}

.google-login:hover {
    background: var(--light-gray);
    border-color: var(--gray);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.g_id_signin {
    display: none;
}

/* Divider */
.divider {
    text-align: center;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light-gray);
}

.divider span {
    background: var(--white);
    padding: 0 var(--spacing-md);
    color: var(--gray);
    position: relative;
    font-size: var(--font-size-sm);
}

/* Sign Up Link */
.signup-link {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--light-gray);
    color: var(--gray);
}

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

.signup-link a:hover {
    text-decoration: underline;
}

/* ==================== Messages ==================== */
.error-message,
.success-message {
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    display: none;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.error-message.show,
.success-message.show {
    display: block;
}

/* ==================== Loading States - 3 Dots Animation ==================== */
.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.login-button.loading .spinner,
.modal-button.loading .spinner {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.spinner .dot {
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    animation: dotWave 1.4s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.spinner .dot:nth-child(1) {
    animation-delay: 0s;
}

.spinner .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotWave {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    30% {
        transform: translateY(-15px);
        opacity: 0.7;
    }
}

/* Alternative Pulse Loading for Secondary Buttons */
.pulse-loader {
    display: none;
    width: 50px;
    height: 20px;
    position: relative;
    margin: 0 auto;
}

.pulse-loader .dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    animation: pulse 1.4s ease-in-out infinite;
}

.pulse-loader .dot:nth-child(1) {
    animation-delay: 0s;
}

.pulse-loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.pulse-loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

 /* Google Loading with 3 dots */
 .google-loading-spinner {
     display: none;
     gap: 4px;
     align-items: center;
     margin-left: var(--spacing-sm);
     vertical-align: middle;
 }
 
 .google-login.loading .google-loading-spinner {
     display: inline-flex;
 }
 
 .google-login.loading .button-text {
     visibility: hidden;
 }
 
 .google-loading-spinner .dot {
     width: 6px;
     height: 6px;
     background: #666;
     border-radius: 50%;
     animation: dotWave 1.4s ease-in-out infinite;
 }
 
 .google-loading-spinner .dot:nth-child(1) {
     animation-delay: 0s;
 }
 
 .google-loading-spinner .dot:nth-child(2) {
     animation-delay: 0.2s;
 }
 
 .google-loading-spinner .dot:nth-child(3) {
     animation-delay: 0.4s;
 }

/* ==================== Modal ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 0;
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn var(--transition-base);
    position: relative;
    margin: var(--spacing-xl);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md);
    border-bottom: 1px solid var(--light-gray);
}

.modal-header h2 {
    margin: 0;
    color: var(--dark);
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.close {
    color: var(--gray);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-base);
    background: transparent;
    border: none;
}

.close:hover {
    color: var(--dark);
    background: var(--light-gray);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-body p {
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.modal-footer {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--light-gray);
}

.modal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* ==================== Cookie Consent ==================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-dark);
    color: var(--white);
    padding: var(--spacing-md);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: var(--z-notification);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    border-top: 3px solid #3498db;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: var(--spacing-md);
}

.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text h4 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #ecf0f1;
}

.cookie-text p {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: #bdc3c7;
}

.cookie-text a {
    color: #3498db;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: #5dade2;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.cookie-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--gradient-success);
    color: var(--white);
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cookie-btn.reject {
    background: var(--gradient-danger);
    color: var(--white);
}

.cookie-btn.reject:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cookie-btn.settings {
    background: transparent;
    color: #ecf0f1;
    border: 2px solid #7f8c8d;
}

.cookie-btn.settings:hover {
    background: #7f8c8d;
    color: var(--white);
    transform: translateY(-2px);
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: calc(var(--z-notification) + 1);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn var(--transition-base);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--light-gray);
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: var(--font-size-xl);
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.cookie-close:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.cookie-modal-body {
    padding: var(--spacing-lg);
}

.cookie-category {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--light-gray);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.cookie-category h4 {
    margin: 0;
    color: var(--dark);
    font-weight: 600;
}

.cookie-category p {
    margin: 0;
    color: var(--gray);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition-base);
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: var(--transition-base);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

input:checked + .cookie-slider {
    background-color: #3498db;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background-color: #27ae60;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

/* ==================== Responsive Design ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 var(--spacing-lg);
    }
    
    .nav-links {
        gap: var(--spacing-lg);
    }
}

 /* Mobile */
 @media (max-width: 768px) {
     /* Navigation Mobile - Dashboard Style */
     nav {
         border-bottom: 1px solid var(--light-gray);
         background: var(--white);
     }
     
     .nav-container {
         padding: 0 1rem;
         min-height: 60px;
     }
     
     .logo img {
         height: 38px;
         max-width: 150px;
         margin-right: 0.5rem;
     }
     
     .hamburger {
         display: block;
         background: var(--white);
         border: 1px solid var(--light-gray);
         border-radius: var(--border-radius-md);
         padding: var(--spacing-sm);
         box-shadow: var(--shadow-sm);
     }
     
     .hamburger:hover {
         background: var(--light-gray);
         box-shadow: var(--shadow-md);
     }
    
         /* Mobile Navigation Drawer - Dashboard Style */
     .nav-links {
         position: fixed;
         top: 0;
         right: -350px;
         width: 350px;
         height: 100vh;
         background: var(--white);
         flex-direction: column;
         justify-content: flex-start;
         align-items: stretch;
         padding: 100px 24px 24px;
         gap: 8px;
         transition: right 0.3s ease-in-out;
         box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
         overflow-y: auto;
         z-index: var(--z-sticky);
         border-left: 1px solid var(--light-gray);
     }
     
     .nav-links.show {
         right: 0;
     }
     
     .nav-links a {
         padding: var(--spacing-md) var(--spacing-lg);
         border-radius: var(--border-radius-md);
         font-size: var(--font-size-base);
         color: var(--gray);
         display: flex;
         align-items: center;
         gap: var(--spacing-sm);
         position: relative;
         transition: all var(--transition-base);
         background: transparent;
         border: none;
         margin-bottom: var(--spacing-xs);
     }
     
     .nav-links a:hover {
         color: var(--dark);
         background: var(--light-gray);
         transform: translateX(4px);
     }
     
     .nav-links .secondary-button {
         margin-top: var(--spacing-lg);
         justify-content: center;
         width: 100%;
         background: var(--white);
         border: 1px solid var(--light-gray);
         color: var(--dark);
     }
     
     .nav-links .secondary-button:hover {
         background: var(--light-gray);
         transform: translateY(-1px);
     }
     
     .nav-links .cta-button {
         margin-top: var(--spacing-md);
         justify-content: center;
         width: 100%;
         background: var(--gradient-primary);
         border: none;
         color: var(--white);
     }
     
     .nav-links .cta-button:hover {
         background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
         transform: translateY(-1px);
     }
    
         /* Mobile Overlay - Dashboard Style */
     .mobile-nav-overlay {
         display: block;
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background: rgba(0, 0, 0, 0.4);
         backdrop-filter: blur(3px);
         z-index: calc(var(--z-sticky) - 1);
         opacity: 0;
         visibility: hidden;
         transition: all var(--transition-base);
     }
     
     .mobile-nav-overlay.show {
         opacity: 1;
         visibility: visible;
     }
    
    /* Login Mobile */
    .login-container {
        padding: var(--spacing-md);
    }
    
    .login-box {
        padding: var(--spacing-xl) var(--spacing-lg);
        border-radius: var(--border-radius-lg);
    }
    
    .login-title {
        font-size: var(--font-size-2xl);
    }
    
    /* Form Mobile */
    input[type="email"],
    input[type="password"],
    input[type="text"] {
        padding: var(--spacing-md);
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-options {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .remember-me {
        order: 2;
    }
    
    .forgot-password {
        order: 1;
    }
    
    /* Cookie Banner Mobile */
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .cookie-icon {
        font-size: var(--font-size-2xl);
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* Modal Mobile */
    .modal-content {
        margin: var(--spacing-md);
        max-width: calc(100% - var(--spacing-xl));
    }
    
    .modal-header {
        padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    }
    
    .modal-header h2 {
        font-size: var(--font-size-xl);
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        min-height: 55px;
    }
    
    .logo img {
        height: 32px;
        max-width: 120px;
        margin-right: 0.25rem;
    }
    
    .nav-links {
        width: 260px;
    }
    
    .login-box {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .cookie-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-xs);
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .login-container {
        padding: var(--spacing-md);
    }
    
    .login-box {
        padding: var(--spacing-lg);
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .login-header {
        margin-bottom: var(--spacing-md);
    }
}

/* ==================== Accessibility ==================== */

/* Focus Styles */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible {
    outline-offset: 4px;
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .toggle-password,
    .close,
    .cookie-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .forgot-password,
    .signup-link a,
    .modal-footer a {
        padding: var(--spacing-sm);
        margin: calc(var(--spacing-sm) * -1);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: #000;
        border-top-color: #fff;
    }
    
    .cookie-text h4,
    .cookie-text p {
        color: #fff;
    }
    
    .cookie-btn.accept {
        background: #00ff00;
        color: #000;
    }
    
    .cookie-btn.reject {
        background: #ff0000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cookie-icon {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .cookie-consent-banner,
    .cookie-modal,
    .modal,
    nav,
    .hamburger,
    .mobile-nav-overlay {
        display: none !important;
    }
    
    .login-container {
        box-shadow: none;
    }
}