.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background-image: linear-gradient(rgba(25, 18, 12, .24), rgba(25, 18, 12, .38)), url('../img/Fondo-Login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 244, 226, .16), rgba(29, 21, 14, .12) 42%, rgba(18, 13, 9, .42) 100%),
        linear-gradient(135deg, rgba(25, 18, 12, .18), rgba(25, 18, 12, .34));
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 42px;
    text-align: center;
    border: 1px solid rgba(120, 90, 55, .18);
    border-radius: 28px;
    background: rgba(255, 250, 242, .94);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    backdrop-filter: blur(8px);
}

.login-logo {
    display: block;
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin: 0 auto 14px;
    border-radius: 24px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(55, 38, 22, .14);
}

.login-title {
    margin: 0;
    color: #2c2118;
    font-size: 2.75rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.login-subtitle {
    margin: 9px 0 0;
    color: #9a7143;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 950;
}

.login-welcome {
    margin: 18px 0 26px;
    color: #5f554b;
    font-size: 1rem;
}

.login-form {
    display: grid;
    gap: 16px;
    text-align: left;
}

.login-form label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.login-form span {
    color: #3b2d1f;
    font-size: .9rem;
    font-weight: 850;
}

.login-input {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(114, 88, 58, .22);
    border-radius: 15px;
    background: rgba(255, 255, 255, .88);
    color: #2c2118;
    padding: 0 16px;
    font-size: .98rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input::placeholder {
    color: #9a9186;
}

.login-input:focus {
    border-color: #a7865d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(167, 134, 93, .16);
}

.remember-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    color: #3b2d1f;
    font-weight: 850;
}

.remember-row input {
    width: 18px;
    height: 18px;
    accent-color: #3b2d1f;
}

.remember-row span {
    line-height: 1;
}

.login-button {
    width: 100%;
    height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b2d1f, #9b7b55);
    color: #fff;
    font-weight: 950;
    font-size: 1rem;
    box-shadow: 0 18px 36px rgba(59, 45, 31, .26);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.login-button:hover {
    filter: brightness(.92);
    box-shadow: 0 20px 42px rgba(59, 45, 31, .32);
    transform: translateY(-1px);
}

.login-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(153, 27, 27, .14);
    border-radius: 14px;
    background: rgba(254, 226, 226, .9);
    color: #991b1b;
    font-weight: 750;
    text-align: left;
}

.password-card {
    max-width: 500px;
}

.password-user {
    margin: -8px 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(120, 90, 55, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .56);
    text-align: center;
}

.password-user strong,
.password-user span {
    display: block;
}

.password-user strong {
    color: #2c2118;
    font-weight: 900;
}

.password-user span {
    margin-top: 3px;
    color: #73685c;
    font-size: .9rem;
}

.password-hint {
    margin: -4px 0 2px;
    color: #756a5e;
    font-size: .85rem;
}

.login-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 560px) {
    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .login-title {
        font-size: 2.3rem;
    }
}
