/* Jeffix Authentication Styles - Laravel Integration */
/* Namespaced with 'jeffix-' prefix to avoid conflicts */

/* === CSS VARIABLES === */
:root {
  /* Brand Colors - Matching Jeffix Design System */
  --jeffix-primary: #00BCD4;
  --jeffix-primary-dark: #0097A7;
  --jeffix-primary-light: #4DD0E1;
  --jeffix-secondary: #00ACC1;
  --jeffix-accent: #26C6DA;
  --jeffix-success: #00C853;
  
  /* Text Colors */
  --text-primary: #263238;
  --text-secondary: #546E7A;
  --text-light: #90A4AE;
  --text-muted: #B0BEC5;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fbfc;
  --bg-accent: #e0f7ff;
  --bg-light: #fafbfc;
  
  /* Border & Divider Colors */
  --border-light: var(--border-light);
  --border-medium: #e2e8f0;
  --border-dark: #cbd5e1;
  
  /* Status Colors */
  --warning: #ff9800;
  --error: #f44336;
  --info: #2196f3;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-button: 0 2px 4px 0 rgb(0 188 212 / 0.2);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Main Container */
.jeffix-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* Hero Section */
.jeffix-hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    overflow: hidden;
}

.jeffix-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.jeffix-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 500px;
}

.jeffix-logo-section {
    margin-bottom: 60px;
}

.jeffix-tagline {
    display: block;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.jeffix-logo {
    font-size: 48px;
    font-weight: 700;
    color: #00BCD4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.jeffix-hero-text {
    animation: jeffix-fadeInUp 1s ease-out 0.3s both;
}

.jeffix-main-heading {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.jeffix-description {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 450px;
}

.jeffix-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.jeffix-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Login Section */
.jeffix-login-section {
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: white;
}

.jeffix-login-container {
    max-width: 400px;
    width: 100%;
    animation: jeffix-fadeInRight 1s ease-out 0.5s both;
}

.jeffix-login-header {
    text-align: center;
    margin-bottom: 40px;
}

.jeffix-welcome-title {
    font-size: 32px;
    font-weight: 600;
    color: #00BCD4;
    margin-bottom: 10px;
}

.jeffix-welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form Styles - Integrated with Laravel classes */
.jeffix-login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.jeffix-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jeffix-form-group.mb-50 {
    margin-bottom: 30px;
}

.jeffix-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.jeffix-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.jeffix-input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    font-size: 16px;
    z-index: 1;
}

.jeffix-form-control {
    width: 100%;
    padding: 16px 50px 16px 45px;
    border: 2px solid var(--border-medium);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-light);
    transition: all 0.3s ease;
    outline: none;
}

.jeffix-form-control:focus {
    border-color: #00BCD4;
    background: white;
    box-shadow: 0 0 0 4px rgba(64, 169, 227, 0.1);
}

.jeffix-form-control::placeholder {
    color: var(--text-light);
}

.jeffix-form-control.is-invalid {
    border-color: var(--error);
    background: #fef2f2;
}

.jeffix-toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

.jeffix-toggle-password:hover {
    color: #00BCD4;
}

.jeffix-error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.jeffix-form-group.jeffix-error .jeffix-form-control {
    border-color: var(--error);
    background: #fef2f2;
}

/* Checkbox Styles */
.jeffix-form-options {
    margin: 10px 0;
}

.jeffix-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.jeffix-checkbox-container input {
    display: none;
}

.jeffix-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-dark);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jeffix-checkbox-container input:checked + .jeffix-checkmark {
    background: #00BCD4;
    border-color: #00BCD4;
}

.jeffix-checkbox-container input:checked + .jeffix-checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Button Styles - Enhanced Laravel button */
.jeffix-sign-in-btn {
    background: linear-gradient(135deg, var(--jeffix-primary) 0%, var(--jeffix-primary-dark) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.jeffix-sign-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64, 169, 227, 0.3) !important;
}

.jeffix-sign-in-btn:active {
    transform: translateY(0);
}

.jeffix-sign-in-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.jeffix-btn-text {
    display: inline-block;
}

.jeffix-btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.jeffix-sign-in-btn:hover .jeffix-btn-icon {
    transform: translateX(5px);
}

.jeffix-loading-spinner {
    display: none;
}

/* Additional Options */
.jeffix-additional-options {
    text-align: center;
    margin-top: 24px;
}

.jeffix-forgot-password {
    color: #00BCD4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.jeffix-forgot-password:hover {
    color: #0097A7;
    text-decoration: underline;
}

/* Language Switcher */
.jeffix-language-switcher {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.jeffix-lang-link {
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jeffix-lang-link:hover {
    background: var(--border-light);
    color: #00BCD4;
}

.jeffix-lang-link.active {
    background: #00BCD4;
    color: white;
}

/* Loading Overlay */
.jeffix-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.jeffix-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--jeffix-primary);
    border-radius: 50%;
    animation: jeffix-spin 1s linear infinite;
}

/* Animations */
@keyframes jeffix-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jeffix-fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .jeffix-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .jeffix-hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .jeffix-main-heading {
        font-size: 36px;
    }
    
    .jeffix-logo {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .jeffix-hero-section {
        padding: 30px 20px;
        height: 45vh;
        min-height: 350px;
    }
    
    .jeffix-main-heading {
        font-size: 28px;
    }
    
    .jeffix-logo {
        font-size: 32px;
    }
    
    .jeffix-description {
        font-size: 16px;
    }
    
    .jeffix-login-section {
        padding: 40px 20px;
    }
    
    .jeffix-welcome-title {
        font-size: 28px;
    }
    
    .jeffix-welcome-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .jeffix-hero-section {
        padding: 20px 15px;
        height: 40vh;
        min-height: 300px;
    }
    
    .jeffix-main-heading {
        font-size: 24px;
    }
    
    .jeffix-logo {
        font-size: 28px;
    }
    
    .jeffix-description {
        font-size: 15px;
    }
    
    .jeffix-login-section {
        padding: 30px 15px;
    }
    
    .jeffix-welcome-title {
        font-size: 24px;
    }
    
    .jeffix-form-control {
        padding: 14px 45px 14px 40px;
        font-size: 15px;
    }
    
    .jeffix-sign-in-btn {
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .jeffix-hero-section::before {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .jeffix-form-control {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}