/* Login Page Styles */

:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #B8860B;
    --text-dark: #1a1a1a;
    --text-medium: #555;
    --bg-cream: #faf8f5;
    --shadow-light: rgba(212, 175, 55, 0.1);
    --shadow-medium: rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-cream);
    overflow-x: hidden;
}

.login-container {
    min-height: 100vh;
    display: flex;
}

/* Left Image Section */
.image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.welcome-overlay {
    text-align: center;
    color: white;
    padding: 2rem;
    z-index: 2;
}

.welcome-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-overlay p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Right Form Section */
.form-section {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
}

.logo-container {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

.logo-container h3 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.875rem;
    margin: 0;
}

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

.form-label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.text-danger {
    color: #e53e3e;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    transition: all 0.3s ease;
    color: var(--text-dark);
    min-height: 50px;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px var(--shadow-light);
    background: white;
}

.form-control.is-invalid {
    border-color: #e53e3e;
    background: #fff5f5;
}

.invalid-feedback {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.custom-control {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.custom-control-input {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
}

.custom-control-label {
    color: var(--text-medium);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.demo-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.demo-title {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.demo-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-demo {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.btn-demo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary { 
    background: #3182ce; 
}

.btn-info { 
    background: #319795; 
}

.btn-success { 
    background: #38a169; 
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #c53030;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }

    .image-section {
        min-height: 300px;
        order: 1;
    }

    .welcome-overlay h1 {
        font-size: 2rem;
    }

    .welcome-overlay p {
        font-size: 1rem;
    }

    .form-section {
        order: 2;
        padding: 2rem 1.5rem;
    }

    .form-wrapper {
        max-width: 100%;
    }

    .logo-container {
        margin-bottom: 2rem;
    }

    .logo-container h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .image-section {
        min-height: 250px;
    }

    .form-section {
        padding: 1.5rem 1rem;
    }

    .form-control,
    .btn-login {
        padding: 0.875rem;
        min-height: 48px;
    }

    .demo-buttons {
        flex-direction: column;
    }

    .btn-demo {
        width: 100%;
        min-width: auto;
    }

    .logo-container img {
        max-width: 120px;
    }
}