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

body {
    background-color: #080710;
    min-height: 100vh;
    overflow-x: hidden;

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

    padding: 24px 16px;
}

.background {
    width: 430px;
    height: 520px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    z-index: -1;
}

.background .shape {
    height: 200px;
    width: 200px;
    position: absolute;
    border-radius: 50%;
}

.shape:first-child {
    background: linear-gradient(#1845ad, #23a2f6);
    left: -80px;
    top: -80px;
}

.shape:last-child {
    background: linear-gradient(to right, #ff512f, #f09819);
    right: -30px;
    bottom: -80px;
}

form {
    width: 400px;
    max-width: 100%;

    max-height: 92vh;
    overflow-y: auto;

    background-color: rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);

    padding: 44px 35px;
}

form * {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}

form h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
}

label {
    display: block;
    margin-top: 24px;
    font-size: 16px;
    font-weight: 500;
}

input {
    display: block;
    height: 50px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    padding: 0 10px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 300;
}

::placeholder {
    color: #e5e5e5;
}

/* ===== Campo de contraseña con botón de ojito ===== */

.campo-password {
    position: relative;
    margin-top: 8px;
}

.campo-password input {
    margin-top: 0;
    padding-right: 48px;
}

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

    width: 38px;
    height: 38px;

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

    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.toggle-password:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    stroke: #e5e5e5;
}

.toggle-password .icono-ojo-off {
    display: none;
}

.toggle-password.mostrando .icono-ojo {
    display: none;
}

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

/* ===== Aviso de Bloq Mayús ===== */

.caps-aviso {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #ffd27d;
}

.caps-aviso.visible {
    display: block;
}

/* ===== Mensaje de error ===== */

.login-error {
    min-height: 20px;
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #ff9a9d;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.login-error:not(:empty) {
    opacity: 1;
}

/* ===== Botón ===== */

button[type="submit"] {
    margin-top: 22px;
    width: 100%;
    background-color: #ffffff;
    color: #080710;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-1px);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ===== Celular ===== */

@media (max-width: 480px) {

    form {
        padding: 34px 22px;
    }

    form h3 {
        font-size: 26px;
        line-height: 34px;
    }

    label {
        margin-top: 20px;
        font-size: 15px;
    }

    button[type="submit"] {
        font-size: 16px;
        padding: 14px 0;
    }

}
