.logon-page {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(245, 196, 0, 0.28), transparent 60%),
        #f3f4f6;
}

.logon {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.logon-card {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 20px;
    border-top: 4px solid #f5c400;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
    padding: 40px 36px 32px;
}

.logon-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.logon-brand img {
    width: min(240px, 78%);
    height: auto;
}

.logon-card h1 {
    margin: 0 0 24px;
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #111;
    text-align: center;
}

.logon-field {
    margin-bottom: 16px;
}

.logon-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.logon-page .form-control {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    padding: 0 14px;
    color: #111;
    box-shadow: none;
}

.logon-page select.form-control {
    appearance: none;
    padding-right: 40px;
    background-color: #fafafa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.logon-password {
    position: relative;
}

.logon-password .form-control {
    padding-right: 46px;
}

.logon-password-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.logon-password-toggle:hover,
.logon-password-toggle:focus-visible {
    color: #111;
    outline: none;
}

.logon-password-toggle .ojo-cerrado,
.logon-password-toggle.is-visible .ojo-abierto {
    display: none;
}

.logon-password-toggle.is-visible .ojo-cerrado {
    display: block;
}

.logon-page .form-control:focus {
    background: #fff;
    border-color: #f5c400;
    outline: 3px solid rgba(245, 196, 0, 0.35);
}

.logon-page select.form-control:focus {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.logon-field ul {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #b42318;
    font-size: 0.82rem;
}

.logon-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.92rem;
    transition: opacity 0.3s ease;
}

.logon-alert.is-saliendo {
    opacity: 0;
}

.logon-alert-error {
    background: #fef2f2;
    color: #991b1b;
}

.logon-alert-ok {
    background: #f0fdf4;
    color: #166534;
}

.logon-submit {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.logon-submit:hover {
    background: #2a2a2a;
}

.logon-footer {
    margin-top: 22px;
    color: #6b7280;
    font-size: 0.82rem;
    text-align: center;
}

.logon-footer a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.logon-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .logon-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }
}
