
:root {
    --primario: #560044;
    --primario-claro: #7a0062;
    --oscuro: #1a1a1a;
    --blanco: #ffffff;
    --error: #d32f2f;
}


.login-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(rgba(86, 0, 68, 0.8), rgba(26, 26, 26, 0.9)), url("../img/logo2.png");
    background-size: cover;
    background-position: center;
}


.login-container {
    background: var(--blanco);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

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


.login-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

h2 {
    color: var(--primario);
    margin: 10px 0 5px;
    font-size: 24px;
}

.login-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--oscuro);
}

input {
    padding: 14px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primario);
}


.btn-login {
    background-color: var(--primario);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--primario-claro);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}


.login-error {
    color: var(--error);
    font-size: 14px;
    margin-top: 15px;
    min-height: 18px;
    text-align: center;
    font-weight: 600;
}
.btn-regresar-inicio {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    background-color: #560044; 
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-regresar-inicio:hover {
    background-color: #c4008d; 
    transform: translateX(5px);
    color: white;
}

.btn-regresar-inicio i {
    font-size: 1.1rem;
}


@media (max-width: 480px) {
    .btn-regresar-inicio {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }
}