/* Custom styles for separation of concerns */

/* Cart table column widths */
.col-quantity {
    width: 150px;
}

.col-action {
    width: 80px;
}

/* Icon display size for confirmation pages */
.display-1 {
    font-size: 5rem;
}

/* Auth card max width */
.auth-card {
    width: 100%;
    max-width: 500px;
}

/* Alpine.js x-cloak support */
[x-cloak] {
    display: none !important;
}

/* Login Screen Styles */
.login-body {
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.login-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.logo-section {
    text-align: center;
    margin-bottom: 48px;
}

.login-logo {
    max-height: 120px;
    max-width: 300px;
    margin-bottom: 24px;
    filter: none;
}

.login-title {
    color: #212529;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: none;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1.125rem;
    margin-bottom: 0;
    font-weight: 400;
}

.login-form-content {
    width: 100%;
}

.login-form .form-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: #495057 !important;
    font-size: 0.95rem;
}

.login-form .input-group-text {
    background: #f8f9fa !important;
    border-color: #ced4da !important;
    color: #6c757d !important;
    border-right: none;
}

.login-form .form-control {
    background: #ffffff !important;
    border-color: #ced4da !important;
    color: #495057 !important;
    transition: all 0.3s ease;
    border-left: none;
    font-size: 1rem;
    padding: 12px 16px;
}

.login-form .form-control:focus {
    background: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    color: #495057 !important;
}

.login-form .form-control::placeholder {
    color: #adb5bd !important;
}

.login-btn {
    background: #0d6efd;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
    margin-top: 8px;
}

.login-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-form .form-check {
    margin-bottom: 24px;
}

.form-check-input {
    background-color: #ffffff;
    border-color: #ced4da;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
    color: #495057 !important;
    font-size: 0.95rem;
    font-weight: 400;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 8px;
    margin-bottom: 24px;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Form spacing improvements */
.login-form .mb-3 {
    margin-bottom: 24px;
}

.login-form .mb-4 {
    margin-bottom: 32px;
}

/* Link styling */
.login-form a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.login-form a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Desktop optimizations */
@media (min-width: 768px) {
    .login-container {
        padding: 40px;
    }
    
    .login-card {
        padding: 64px;
        max-width: 480px;
    }
    
    .logo-section {
        margin-bottom: 56px;
    }
    
    .login-logo {
        max-height: 140px;
        max-width: 350px;
    }
}

/* Mobile adjustments - override desktop styles */
@media (max-width: 576px) {
    .login-body {
        background: #222;
    }
    
    .login-container {
        background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    }
    
    .login-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        margin: 10px;
        padding: 30px 25px;
    }
    
    .login-logo {
        max-height: 60px;
        filter: brightness(1.1);
    }
    
    .login-title {
        color: #ffffff;
        font-size: 1.75rem;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .login-subtitle {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1rem;
        font-weight: 300;
    }
    
    .login-form .form-label {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .login-form .input-group-text {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .login-form .form-control {
        background: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        font-size: 13px !important;
    }
    
    .login-form .form-control:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    .login-form .form-control::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
    }
    
    .form-check-input {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .form-check-label {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .login-btn {
        background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
        box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    }
    
    .login-btn:hover {
        background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    }
    
    .login-form a {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .alert-success {
        background-color: rgba(25, 135, 84, 0.2);
        border-color: rgba(25, 135, 84, 0.3);
        color: #75b798;
    }
}
