/* ═══════════════════════════════════════════
h1,h2,h3,h4,h5,h6,p,a,span,li,td,th,input,select,textarea,button,label,div{font-family:"Lato",-apple-system,sans-serif!important}
   Auth pages – Register & Login
   ═══════════════════════════════════════════ */

.mn-auth-wrap {
    display: flex; justify-content: center; align-items: flex-start;
    min-height: 80vh; padding: 40px 20px;
    font-family: 'Lato', -apple-system, sans-serif;
}

.mn-auth-card {
    background: #fff; border-radius: 16px; padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    width: 100%; max-width: 720px;
}
.mn-auth-card-sm { max-width: 420px; }

.mn-auth-logo { text-align: center; margin-bottom: 16px; }
.mn-logo-img { width: 180px; height: auto; }

.mn-auth-title {
    text-align: center; font-size: 26px; font-weight: 800;
    color: #1e293b; margin: 0 0 4px;
}
.mn-auth-subtitle {
    text-align: center; font-size: 14px; color: #64748b; margin: 0 0 28px;
}

/* Sections */
.mn-form-section { margin-bottom: 24px; }
.mn-section-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: #64748b; margin: 0 0 14px;
    padding-bottom: 8px; border-bottom: 1px solid #e2e8f0;
}

/* Form grid */
.mn-form-row {
    display: grid; gap: 14px;
}
.mn-form-row-2 { grid-template-columns: 1fr 1fr; }
.mn-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Form group */
.mn-form-group {
    margin-bottom: 14px;
    min-width: 0; /* prevent grid/flex blowout */
}
.mn-form-group label {
    display: block; font-size: 12px; font-weight: 600;
    color: #475569; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .3px;
}
.mn-form-group input,
.mn-form-group select {
    width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 14px; color: #1e293b;
    transition: all .15s; outline: none;
    box-sizing: border-box;
}
.mn-form-group input:focus,
.mn-form-group select:focus {
    border-color: #3b5fea; box-shadow: 0 0 0 3px rgba(59,95,234,.1);
}
.mn-input-readonly { background: #f8fafc; color: #94a3b8; }

/* Input with icon */
.mn-input-icon {
    position: relative;
}
.mn-input-icon > i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 14px; pointer-events: none; z-index: 1;
}
.mn-input-icon input { padding-left: 36px; }

/* CIF row */
.mn-cif-row { max-width: 300px; }
.mn-input-cif input { padding-right: 42px; }
.mn-btn-anaf {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: #3b5fea; color: #fff; border: none; border-radius: 6px;
    width: 32px; height: 32px; cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.mn-btn-anaf:hover { background: #2d4ed8; }
.mn-btn-anaf.loading i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mn-field-hint { font-size: 11px; color: #10b981; margin-top: 3px; display: block; }
.mn-field-hint.error { color: #ef4444; }

/* Checkbox */
.mn-checkbox {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: #475569; cursor: pointer;
}
.mn-checkbox input { margin-top: 2px; }
.mn-checkbox a { color: #3b5fea; text-decoration: underline; }

/* Submit */
.mn-btn-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px; font-size: 16px; font-weight: 700;
    background: #10b981; color: #fff; border: none; border-radius: 10px;
    cursor: pointer; transition: all .15s; margin-top: 8px;
}
.mn-btn-submit:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.mn-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Footer link */
.mn-auth-footer {
    text-align: center; font-size: 14px; color: #64748b; margin-top: 20px;
}
.mn-auth-footer a { color: #3b5fea; font-weight: 600; text-decoration: none; }
.mn-auth-footer a:hover { text-decoration: underline; }

/* Alerts */
.mn-auth-alert {
    padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-bottom: 16px;
}
.mn-auth-alert-success { background: #ecfdf5; color: #065f46; }
.mn-auth-alert-error { background: #fef2f2; color: #991b1b; }

/* Responsive */
@media (max-width: 600px) {
    .mn-form-row-2, .mn-form-row-3 { grid-template-columns: 1fr; }
    .mn-auth-card { padding: 24px; }
}
