body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #fef08a, #fde047);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", Arial, sans-serif;
    padding: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
    text-align: center;
}

.login-box form {
    width: 100%;
}

.login-box h2 {
    margin-bottom: 25px;
    font-size: 26px;
    color: #111827;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
}

.login-box button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #fde047;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.login-box button[type="submit"]:hover {
    background: #fac015;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    top: 3px;
    right: 4px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #111827;
    background: #fef9c3;
    outline: none;
}

.password-toggle svg {
    display: block;
    width: 17px;
    height: 17px;
    max-width: 17px;
    max-height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .icono-ocultar,
.password-toggle.mostrando .icono-mostrar {
    display: none;
}

.password-toggle.mostrando .icono-ocultar {
    display: block;
}

.error {
    background: #fff3cd;
    color: #664d03;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .login-box {
        padding: 26px 20px;
    }
}
