/* Modern Authentication Styles */

/* Auth Container */
.auth-container {
    min-height: 100vh;
    background: #f8fafc;
}

/* Auth Layout */
.auth-content {
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 0;
}

.auth-visual {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-left: 1px solid #e5e7eb;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    opacity: 1;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
}

/* Authentication background image styles */
.auth-visual-image {
    position: relative;
    min-height: 100vh;
    height: 100%;
    background-color: #f8fafc; /* Fallback background */
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8) 0%, rgba(99, 102, 241, 0.7) 100%);
    z-index: 1;
}

/* Auth Header */
.auth-header {
    margin-bottom: 2.5rem;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    border-radius: 16px;
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.auth-icon i {
    font-size: 1.75rem;
    color: white;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Modern Form Styles */
.form-group-modern {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #6b7280;
    transition: color 0.2s ease;
    pointer-events: none;
}

.form-field-icon i {
    font-size: 1rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-left: 2.75rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide placeholder text - we use floating labels instead */
.form-control-modern::placeholder {
    color: transparent;
}

/* Ensure floating label animation works properly */
.form-control-modern:focus::placeholder {
    color: transparent;
}

.form-control-modern:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.form-control-modern:focus + .form-label-modern,
.form-control-modern:not(:placeholder-shown) + .form-label-modern {
    color: #4f46e5;
}

.form-control-modern:focus ~ .form-field-icon,
.form-control-modern:not(:placeholder-shown) ~ .form-field-icon {
    color: #4f46e5;
}

.form-control-modern.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control-modern.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-label-modern {
    position: absolute;
    top: 50%;
    left: 2.75rem;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 500;
    background: transparent;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.form-control-modern:focus ~ .form-label-modern,
.form-control-modern:not(:placeholder-shown) ~ .form-label-modern {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #ffffff;
    padding: 0 0.25rem;
    color: #4f46e5;
}

.form-help-text {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

.form-error-text {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #ef4444;
    line-height: 1.4;
}

.form-error-text span {
    display: block;
}

/* Checkbox Styles */
.form-check-modern {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 0;
}

.form-check-modern .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    margin-right: 0.75rem;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.form-check-modern .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.form-check-modern .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-check-modern .form-check-label {
    font-size: 0.9375rem;
    color: #1f2937;
    line-height: 1.5;
    cursor: pointer;
    font-weight: 500;
}

/* Modern Button Styles */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.btn-modern:disabled,
.btn-modern.btn-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Button Variants */
.btn-modern.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-modern.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.btn-modern.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.btn-modern.btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-modern.btn-outline {
    background: transparent;
    color: #4f46e5;
    border: 1.5px solid #4f46e5;
}

.btn-modern.btn-outline:hover:not(:disabled) {
    background: #4f46e5;
    color: white;
}

/* Button Sizes */
.btn-modern.btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-modern.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 52px;
}

.btn-modern.btn-block {
    width: 100%;
}

/* Button Loading State */
.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-loading .btn-text {
    opacity: 0;
}

/* Auth Features */
.auth-feature {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    opacity: 1;
}

.auth-feature i {
    font-size: 1.125rem;
}

/* Slate color utilities for lighter design */
.text-slate-600 {
    color: #475569 !important;
}

.text-slate-700 {
    color: #334155 !important;
}

/* Alert Styles for Auth */
.alert-modern {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.alert-modern.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-modern.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-modern.alert-warning {
    background: #fefce8;
    color: #a16207;
    border-left: 4px solid #eab308;
}

.alert-modern i {
    margin-right: 0.5rem;
    font-size: 1.125rem;
}

/* Auth Footer Links */
.auth-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 992px) {
    /* Split layout for large screens and up (matches header menu breakpoint) */
    .auth-container .col-lg-6:first-child {
        display: flex !important;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .auth-container .col-lg-6:last-child {
        display: flex !important;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .auth-content {
        margin: 0;
        max-width: none !important;
    }
}

@media (max-width: 991.98px) {
    .auth-visual {
        display: none !important;
    }
    
    .auth-content {
        max-width: 420px !important;
        margin: 0 auto;
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-content {
        padding: 2rem 1rem;
    }
    
    .auth-title {
        font-size: 1.625rem;
    }
    
    .form-control-modern {
        padding: 0.75rem 1rem;
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }
    
    .form-label-modern {
        left: 2.5rem;
        font-size: 0.9rem;
    }
    
    .form-control-modern:focus ~ .form-label-modern,
    .form-control-modern:not(:placeholder-shown) ~ .form-label-modern {
        font-size: 0.75rem;
    }
    
    .btn-modern {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-modern.btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* Ensure consistent light theme - no dark mode overrides */
.auth-container,
.auth-content,
.auth-visual {
    background: #ffffff !important;
}

.auth-container {
    background: #f9fafb !important;
} 