@font-face {
    font-family: 'ARSMaquettePro';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/ARSMaquettePro-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'ARSMaquettePro';
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/ARSMaquettePro-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'ARSMaquettePro';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/ARSMaquettePro-Light.woff2') format('woff2');
}

body {
    align-items: center;
    animation: gradientBackground 120s ease infinite;
    background: linear-gradient(135deg, #98a4ae, #7b858d, #f0f0f0, #40444b, #50575d, #d3d3d3);
    background-size: 600% 600%;
    color: #ffffff;
    display: flex;
    font-family: 'ARSMaquettePro', 'Arial', sans-serif;
    height: 100vh;
    justify-content: center;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

/* Add a wrapper for the main content */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    10% { background-position: 25% 75%; }
    20% { background-position: 75% 25%; }
    30% { background-position: 100% 50%; }
    40% { background-position: 50% 100%; }
    50% { background-position: 75% 50%; }
    60% { background-position: 50% 25%; }
    70% { background-position: 0% 50%; }
    80% { background-position: 25% 0%; }
    90% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    animation: slide-up 0.6s ease-out;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    max-width: 1000px;
    overflow: hidden;
    transform: translateY(0);
    width: 100%;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container .logo-section {
    align-items: center;
    background-color: #23272a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    width: 50%;
}

.logo-section img {
    height: auto;
    max-width: 70%;
    transition: all 0.3s;
}

.logo-section img:hover { 
    transform: scale(1.05); 
}

.application-name {
    color: #eada24;
    font-size: 24px;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
}

.login-container .form-section {
    align-items: center;
    background-color: #ffffff;
    border-radius: 0 12px 12px 0;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    width: 50%;
    position: relative;
}

.form-section h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.input-container i {
    color: #ccc;
    left: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.input-container input {
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin: 10px 0;
    padding: 12px;
    padding-left: 40px;
    transition: all 0.3s ease;
    width: 100%;
}

.input-container input:focus {
    border-color: #eada24;
    box-shadow: 0 0 8px rgba(234, 218, 36, 0.4);
    outline: none;
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.input-container input.error { 
    border-color: #e74c3c; 
}

.error-message {
    color: #e74c3c;
    display: none;
    font-size: 12px;
    margin-top: 5px;
}

.form-section button {
    background-color: #eada24;
    border: none;
    border-radius: 6px;
    color: #2c3e50;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    padding: 12px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.form-section button:hover { 
    background-color: #d0bd1e; 
}

.form-section button:disabled {
    background-color: #d0bd1e;
    cursor: not-allowed;
}

.form-section .loading-spinner {
    animation: spin 1s linear infinite;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left-color: #eada24;
    border-radius: 50%;
    display: none;
    height: 24px;
    width: 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-section a {
    color: #eada24;
    font-size: 14px;
    margin-top: 10px;
    text-decoration: none;
}

.form-section a:hover { 
    text-decoration: underline; 
}

/* Login form alert styles */
.form-section .alert {
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 12px 16px;
}

.form-section .alert ul {
    margin: 0;
    padding-left: 20px;
}

.form-section .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.form-section .alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
    color: #198754;
}

.form-section .alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.2);
    color: #0dcaf0;
}

@media (max-width: 768px) {
    .login-container {
        border-radius: 12px;
        flex-direction: column;
        max-width: 90%;
    }

    .logo-section {
        border-radius: 12px 12px 0 0;
        padding: 20px;
        width: 100%;
    }

    .form-section {
        border-radius: 0 0 12px 12px;
        padding: 30px;
        width: 100%;
    }

    .form-section h1 { 
        font-size: 22px; 
    }

    .form-section button { 
        font-size: 14px; 
    }

    .input-container input { 
        font-size: 14px; 
    }
}

.text-danger {
    color: #e74c3c;
    font-size: 12px;
    position: absolute;
    bottom: -18px;
    left: 0;
}

.form-section .validation-summary-errors {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    color: #e74c3c;
    font-size: 14px;
    padding: 0 20px;
}

.form-section form {
    width: 100%;
    position: relative;
    padding-top: 40px;
}

.form-section .text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

.form-section .validation-summary-errors {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #bd2130;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.form-section .validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}
