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

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(
            135deg,
            #111827,
            #1f2937
        );

    color: #111827;
}

.login-wrapper {
    min-height: 100vh;

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

    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;

    background: #ffffff;

    border-radius: 18px;

    padding: 38px 34px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.35);
}

.logo {
    width: 74px;
    height: 74px;

    margin: 0 auto 22px;

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

    border-radius: 18px;

    background: #2563eb;
    color: #ffffff;

    font-size: 26px;
    font-weight: bold;

    letter-spacing: 1px;
}

h1 {
    text-align: center;

    font-size: 28px;

    margin-bottom: 8px;
}

.subtitulo {
    text-align: center;

    color: #6b7280;

    font-size: 14px;

    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    font-weight: 600;

    margin-bottom: 7px;
}

input {
    width: 100%;

    padding: 13px 14px;

    margin-bottom: 20px;

    border: 1px solid #d1d5db;

    border-radius: 9px;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.12);
}

button {
    width: 100%;

    border: none;

    padding: 14px;

    border-radius: 9px;

    background: #2563eb;
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.1s;
}

button:hover {
    background: #1d4ed8;
}

button:active {
    transform: scale(0.99);
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.mensaje {
    min-height: 22px;

    margin-top: 18px;

    text-align: center;

    font-size: 14px;
}

.mensaje.error {
    color: #dc2626;
}

.mensaje.ok {
    color: #15803d;
}

.pie {
    margin-top: 28px;

    text-align: center;

    color: #9ca3af;

    font-size: 12px;
}

@media (max-width: 500px) {
    .login-box {
        padding: 30px 22px;
    }

    h1 {
        font-size: 24px;
    }
}
