:root {
    --primary: #1a237e;
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary: #f28f23;
    --secondary-light: #f9a94d;
    --white: #ffffff;
    --light-gray: #f5f5f5;
}

/* Estilos generales */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Estilos específicos para login con división diagonal */
.login-page {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* Contenedor izquierdo (logo y descripción) */
.brand-container {
    position: relative;
    width: 50%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    padding: 40px;
    z-index: 1;
    overflow: hidden;
}

/* Efecto de fondo para el lado izquierdo */
.brand-container::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, transparent 20%, var(--light-gray) 70%);
    opacity: 0.3;
    animation: pulse 15s infinite;
    z-index: -1;
}

/* Diagonal divisor */
.diagonal-divider {
    top: 0;
    bottom: 0;
    right: 0;
    width: 150px;
    background: var(--primary);
    transform: skewX(354deg) translateX(75px);
    z-index: 2;
}

/* Contenedor derecho (formulario) */
.form-container {
    width: 50%;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* Logo grande */
.brand-logo {
    width: 500px;
    height: 220px;
    object-fit: contain;
    margin-bottom: 30px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    animation: float 4s ease-in-out infinite;
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.brand-description {
    font-size: 18px;
    opacity: 0.9;
    text-align: center;
    max-width: 80%;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Formulario de login */
.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    border-top: 5px solid var(--secondary);
}

.login-header {
    text-align: center;
    padding: 25px 20px 15px;
    border-bottom: 1px solid #eee;
}

.login-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.login-form {
    padding: 30px;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary);
    font-size: 15px;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    background-color: var(--light-gray);
}

.input-group i.input-icon {
    position: absolute;
    left: 15px;
    top: 50px;
    color: var(--primary);
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(242, 143, 35, 0.15);
    outline: none;
    background-color: white;
}

.input-group input:focus + i.input-icon {
    color: var(--secondary);
    opacity: 1;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(242, 143, 35, 0.3);
    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: all 0.6s;
}

.btn-login:hover {
    background: #e07c12;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(242, 143, 35, 0.4);
}

.btn-login:hover::before {
    left: 100%;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 14px;
}

.login-links a {
    color: var(--primary);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

.login-links a i {
    margin-right: 6px;
    color: var(--secondary);
}

.login-links a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--white);
    font-size: 14px;
}

.alert-error {
    background: #fff1e6;
    color: #d63031;
    padding: 15px;
    margin: 5px 5px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border-left: 4px solid #d63031;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Montserrat', sans-serif;
}

.alert-error i {
    margin-right: 10px;
    font-size: 18px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 992px) {
    .login-page {
        flex-direction: column;
    }
    
    .brand-container {
        display: none;
    }
    
    .form-container {
        width: 100%;
        min-height: 100vh;
        padding: 30px 20px;
    }
    
    .diagonal-divider {
        display: none;
    }
    
    .login-container {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        width: 100%;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .login-card {
        border-radius: 12px;
    }
    
    .btn-login {
        padding: 14px;
    }
    
    .brand-logo {
        width: 120px;
        height: 120px;
    }
    
    .brand-title {
        font-size: 28px;
    }   
}