* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8f5ef 0%, #efe7da 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-card {
    background: linear-gradient(135deg, #ffffff 0%, #fcfaf6 100%);
    padding: 42px 36px;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    width: 100%;
    max-width: 430px;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeIn 0.8s ease forwards;
    border: 1px solid rgba(184, 145, 70, 0.10);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 110px;
    max-width: 100%;
    margin: 0 auto 18px auto;
    display: block;
    animation: pop 0.6s ease;
}

@keyframes pop {
    0% {
        transform: scale(0.75);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

h1,
h2 {
    margin: 0 0 10px 0;
    color: #6B4E16;
    font-weight: 800;
}

.subtitulo-login,
.login-card p {
    margin: 0 0 22px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

form {
    text-align: left;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #5c4a2f;
    font-size: 14px;
}

form input {
    width: 100%;
    padding: 13px 14px;
    margin: 0 0 16px 0;
    border-radius: 12px;
    border: 1px solid #dbcdb7;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: all 0.25s ease;
}

form input:focus {
    outline: none;
    border-color: #caa25a;
    box-shadow: 0 0 0 4px rgba(202, 162, 90, 0.14);
}

form input::placeholder {
    color: #9ca3af;
}

form button {
    background: linear-gradient(135deg, #caa25a 0%, #b89146 100%);
    color: white;
    font-weight: 700;
    font-size: 15px;
    padding: 13px;
    width: 100%;
    border: none;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(184, 145, 70, 0.20);
}

form button:hover {
    background: linear-gradient(135deg, #b89146 0%, #9c7e45 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(184, 145, 70, 0.28);
}

form button:active {
    transform: translateY(0);
}

/* MENSAJES FLASH */
.flash,
.alerta-login {
    background: #fdecec;
    color: #b42318;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #f7d2d0;
    text-align: left;
}

.flash.success,
.alerta-login.success {
    background: #e8f8ee;
    color: #1f6b39;
    border-color: #cdeed8;
}

.flash.warning,
.alerta-login.warning {
    background: #fff7e6;
    color: #9a6700;
    border-color: #f2dfb0;
}

/* OPCIONAL: PIE O TEXTO EXTRA */
.login-footer {
    margin-top: 18px;
    font-size: 13px;
    color: #8a8f98;
    text-align: center;
}

.login-footer a {
    color: #9c7e45;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    color: #6B4E16;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .logo {
        width: 85px;
        margin-bottom: 14px;
    }

    h1,
    h2 {
        font-size: 22px;
    }

    form input,
    form button {
        font-size: 14px;
    }
}