/* Create Date: 2025-01-15, Author Name: Alok, File Name: login.css */
/* Purpose: Styles for login landing page */

:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --secondary: #6c757d;
    --light-bg: #f8f9fa;
    --border: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 2rem 0;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    opacity: 0.95;
}

.feature-item i {
    font-size: 1.25rem;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* Login Card */
.login-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

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

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.logo-container i {
    color: white;
    font-size: 2.5rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .input-group-text {
    border: 1px solid #e0e6ed;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.input-group-text {
    background: var(--light-bg);
    border-right: 0;
    color: var(--secondary);
}

.input-group .form-control {
    border-left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-outline-secondary {
    border-left: 0;
}

/* Demo Credentials Box */
.demo-credentials {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.demo-credentials .bg-light {
    background: #f7f9fc !important;
    border: 1px dashed var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-credentials .bg-light:hover {
    background: #e8f0ff !important;
    border-color: var(--primary-dark);
}

.demo-credentials small {
    line-height: 1.8;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .login-card {
        margin: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 2rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .feature-item {
        font-size: 0.95rem;
    }
}

/* Loading Animation */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-right-color: transparent;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
