/* Estilos de la página de ingreso por DNI. */

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

body {
    background: #f7f6fb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    background: linear-gradient(to bottom, #5289d0, #0043bc);
    border-radius: 40px;
    box-shadow: 0 18px 45px -12px rgba(0, 25, 80, 0.55);
    width: 500px;
    max-width: 80%;
    padding: 40px;
    position: relative;
    text-align: center;
    animation: aparecer 350ms ease-out both;
}

.logo {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 18px 0 rgba(0, 0, 0, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: absolute;
    left: 50%;
    top: -50px;
    transform: translateX(-50%);
    overflow: hidden;
}

.logo img {
    width: 100%;
}

.login-title {
    color: #fff;
    font-size: 35px;
    margin-top: 80px;
    margin-bottom: 40px;
    text-wrap: balance;
}

.human-icon img {
    width: 120px;
}

.subtitle {
    color: #e6e6e6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input[type="text"],
input[type="number"] {
    width: 65%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 6px 0 rgba(36, 36, 36, 0.4);
    text-align: center;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #9ad2bf;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.35);
}

/* Sin flechas de spinner en el DNI */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.login-btn {
    padding: 6px 50px;
    background: #008d5c;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-btn:hover {
    background: #00a86b;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.30);
}

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

.login-btn:focus-visible {
    outline: 3px solid #9ad2bf;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
        border-radius: 28px;
    }

    .login-title {
        font-size: 28px;
    }

    input[type="text"],
    input[type="number"] {
        width: 85%;
    }
}

#loading-screen {
    position: fixed;
    inset: 0;
    background: #f7f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #d0d0d0;
    border-top-color: #0043bc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
