:root{
    --hm-color-primary:#0042B6;
    --hm-color-secondary:#002464;
    --hm-color-bg:#F7F8FE;
    --hm-color-bg-active:#E6F2F8;
    --hm-color-white:#FFFFFF;
    --hm-color-text:#1f2937;
    --hm-color-text-soft:#5b6475;
    --hm-color-border:#d9e2f2;
}

.hm-auth-wrap{
    max-width:980px;
    margin:30px auto;
    padding:24px;
    border:1px solid var(--hm-color-border);
    border-radius:16px;
    background:var(--hm-color-white);
    box-shadow:0 10px 30px rgba(0, 36, 100, .08);
}

.hm-auth-title{
    margin:0 0 18px;
    font-size:28px;
    line-height:1.2;
    color:var(--hm-color-secondary);
}

.hm-auth-desc{
    margin:0 0 20px;
    color:var(--hm-color-text-soft);
}

.hm-auth-msg{
    padding:12px 14px;
    border-radius:10px;
    margin-bottom:18px;
    font-size:14px;
}

.hm-auth-msg.error{
    background:#fff1f2;
    color:#9f1239;
    border:1px solid #fecdd3;
}

.hm-auth-msg.success{
    background:#ecfdf5;
    color:#065f46;
    border:1px solid #a7f3d0;
}

.hm-form{
    display:grid;
    gap:14px;
}

.hm-grid-2{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.hm-field{
    display:grid;
    grid-template-columns:180px 1fr;
    align-items:center;
    gap:10px;
}

.hm-field label{
    font-weight:600;
    margin:0;
    color:var(--hm-color-secondary);
}

.hm-field input,
.hm-field select{
    width:100%;
    padding:11px 12px;
    border:1px solid var(--hm-color-border);
    border-radius:10px;
    background:var(--hm-color-white);
    color:var(--hm-color-text);
}

.hm-field input:focus,
.hm-field select:focus{
    outline:none;
    border-color:var(--hm-color-primary);
    box-shadow:0 0 0 3px rgba(0, 66, 182, .12);
}

.hm-submit{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    padding:12px 18px;
    border:none;
    border-radius:10px;
    background:var(--hm-color-primary);
    color:var(--hm-color-white);
    font-weight:700;
    cursor:pointer;
    transition:.2s ease;
}

.hm-submit:hover{
    background:var(--hm-color-secondary);
}

.hm-access-wrapper{
    display:grid;
    gap:24px;
}

@media (max-width: 768px){
    .hm-grid-2{
        grid-template-columns:1fr;
    }

    .hm-field{
        grid-template-columns:1fr;
        gap:6px;
    }
}

/*sobreescrito de css por defectos*/

.hm-auth-wrap .hm-submit,
.hm-auth-wrap .hm-submit:visited,
.hm-auth-wrap .hm-submit:focus,
.hm-auth-wrap .hm-submit:active{
    background:var(--hm-color-primary) !important;
    color:#fff !important;
    border-color:var(--hm-color-primary) !important;
}

.hm-auth-wrap .hm-submit:hover{
    background:var(--hm-color-secondary) !important;
}

.hm-auth-wrap a{
    color:var(--hm-color-primary) !important;
}

.hm-auth-wrap a:hover{
    color:var(--hm-color-secondary) !important;
}

.hm-auth-wrap input:focus,
.hm-auth-wrap select:focus,
.hm-auth-wrap textarea:focus,
.hm-auth-wrap button:focus{
    outline:none !important;
    border-color:var(--hm-color-primary) !important;
    box-shadow:0 0 0 3px rgba(0, 66, 182, .12) !important;
}