/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFD700 0%, #E31E24 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    animation: fadeIn 0.6s ease-in-out;
}

/* ============================================
   LEFT COLUMN - FORM SECTION
   ============================================ */

.login-form-section {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.login-form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    animation: slideInLeft 0.8s ease-out;
}

.login-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #64748b;
    font-size: 1rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.login-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control-wrapper {
    position: relative;
}

.form-control-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #FFD700;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

.form-control:focus+.form-control-icon {
    color: #E31E24;
}

/* ============================================
   ALERT STYLES
   ============================================ */

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.4s ease-out;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-danger i {
    font-size: 1.2rem;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-info i {
    font-size: 1.2rem;
}

.alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* ============================================
   REMEMBER ME CHECKBOX
   ============================================ */

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #E31E24;
}

.remember-me label {
    color: #64748b;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #f2e242 100%);
    color: #2D2D2D;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.5);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-right: 0.5rem;
}

/* ============================================
   RIGHT COLUMN - VISUAL SECTION
   ============================================ */

.login-visual-section {
    flex: 1;
    /* Background image set to a car image */
    background: url('/assets/img/image-fond-login.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #2D2D2D;
    position: relative;
    overflow: hidden;
}

.login-visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark overlay to ensure text contrast if needed, but user asked for white text blocks */
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: slideInRight 0.8s ease-out;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.visual-image {
    /* Hide the icon image as we now have a real car background */
    display: none; 
}

.visual-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px 40px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    display: inline-block;
}

.visual-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    display: inline-block;
}

.visual-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.5); /* Opacity 0.6 as requested */
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    width: 100%;
    transition: all 0.3s ease;
    color: #2D2D2D;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .visual-title {
        font-size: 2rem;
    }

    .visual-subtitle {
        font-size: 1rem;
    }

    .visual-features {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-form-section {
        order: 2;
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .login-visual-section {
        order: 1;
        min-height: 40vh;
        padding: 2rem 1.5rem;
    }

    .visual-image {
        max-width: 300px;
        margin-bottom: 1rem;
    }

    .visual-title {
        font-size: 1.75rem;
    }

    .visual-subtitle {
        font-size: 0.95rem;
    }

    .visual-features {
        display: none;
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 1.5rem;
    }

    .login-logo img {
        max-width: 140px;
    }

    .form-control {
        padding: 0.75rem 1rem 0.75rem 2.75rem;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}