* {
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.login-box {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.login-logo {
    width: 165px;
    min-height: 70px;
    margin: 0 auto 16px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo img {
    max-width: 145px;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--login-color-boton),
            var(--login-color-principal)
        );

    display: flex;
    justify-content: center;
    align-items: center;

    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
}

.login-title {
    color: var(--login-color-texto);
}

.login-subtitle,
.footer-login {
    color: #6b7280;
}

.input-custom {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    transition: all 0.2s;
    background: #ffffff;
}

.input-custom:focus {
    border-color: var(--login-color-boton);
    box-shadow: 0 0 0 3px rgba(15, 122, 59, 0.18);
    outline: none;
}

.password-wrap {
    position: relative;
}

.password-wrap .input-custom {
    padding-right: 62px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 7px;
}

.btn-login {
    background:
        linear-gradient(
            90deg,
            var(--login-color-boton),
            var(--login-color-principal)
        );

    border-radius: 10px;
    transition: all 0.2s;
}

.btn-login:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

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

.link-recovery {
    color: var(--login-color-boton);
    text-decoration: none;
    font-weight: 600;
}

.link-recovery:hover {
    text-decoration: underline;
}

.alert-error,
.alert-success {
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.password-help {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .login-box {
        border-radius: 16px;
        padding: 22px !important;
    }

    .login-logo {
        width: 150px;
        min-height: 64px;
    }

    .login-logo img {
        max-width: 132px;
        max-height: 52px;
    }

    .logo-placeholder {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}