/* AutoPilot Login - Consistent with Platform Design Language */

body {
    background-color: #f8fafc;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background: white;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

/* Left sidebar section - matches platform sidebar */
.login-sidebar {
    background-color: #1e293b;
    color: white;
    padding: 3rem 2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-section h1 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.brand-section .tagline {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.feature-item i {
    margin-right: 0.75rem;
    width: 1rem;
    color: #cbd5e1;
}

/* Right form section - matches main content */
.login-form-section {
    background-color: white;
    padding: 3rem 2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h2 {
    color: #1e293b;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Form styles consistent with Bootstrap */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    outline: 0;
}

.form-check {
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Button styling consistent with platform */
.btn-login {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    width: 100%;
}

.btn-login:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-login:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.5);
}

.btn-login:disabled {
    opacity: 0.65;
}

/* Alert styling */
.alert {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-danger {
    color: #dc2626;
    background-color: #fef2f2;
    border-color: #fecaca;
}

/* Links */
.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-links .text-muted {
    color: #6b7280;
    margin: 0 0.5rem;
}

/* Demo section */
.demo-section {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.demo-section .small {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.demo-section code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem;
    color: #374151;
    background: transparent;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125em;
    margin-right: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
    }
    
    .login-sidebar,
    .login-form-section {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .brand-section h1 {
        font-size: 1.75rem;
    }
    
    .feature-list {
        display: none;
    }
}

/* Hide default classes to prevent conflicts */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}