/* RESET BÁSICO */
* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
}

/* CONTENEDOR PRINCIPAL */
.login-container {
    background: white;
    width: 100%;
    max-width: 380px;
    padding: 30px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* TÍTULO */
.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

/* FORMULARIOS */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

/* INPUTS Y SELECT */
input,
select.custom-select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
select.custom-select:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* SELECT PERSONALIZADO */
select.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* BOTONES */
button {
    width: 100%;
    padding: 12px;
    background-color: #2a5298;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1e3c72;
}

.link-btn {
    background: none;
    border: none;
    color: #2a5298;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
}

.link-btn:hover {
    text-decoration: underline;
}

/* DIVIDER */
.divider {
    text-align: center;
    margin: 20px 0;
    color: #777;
    font-size: 13px;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background-color: #eee;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

/* UTILIDADES */
.hidden {
    display: none;
}

/* TOAST */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2a5298;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMACIÓN */
.form-box {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AJUSTES PARA MÓVIL */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }

    h2 {
        font-size: 1.3rem;
    }

    button {
        font-size: 15px;
    }
}
