.aut-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10,20,40,.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    /* sem backdrop-filter: quebra position:fixed em iOS/Safari */
}
.aut-overlay.aberto { display: flex; }

.aut-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    margin: 16px;
    box-shadow: 0 20px 60px rgba(10,20,40,.25);
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.aut-modal-header {
    background: #1a2b4a;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.aut-modal-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.aut-modal-close {
    background: none;
    border: none;
    color: #a8b8d8;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    transition: color .15s;
}
.aut-modal-close:hover { color: #fff; }

.aut-modal-body { padding: 24px; }

.aut-hint {
    font-size: 13px;
    color: #6b7a99;
    margin-bottom: 16px;
    line-height: 1.5;
}

.aut-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.aut-input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #dde2ea;
    border-radius: 8px;
    font-size: 14px;
    color: #1a2b4a;
    outline: none;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.aut-input:focus { border-color: #1a2b4a; box-shadow: 0 0 0 3px rgba(26,43,74,.07); }
.aut-input::placeholder { color: #a8b8d8; }

.aut-btn-consultar {
    padding: 11px 20px;
    background: #1a2b4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
    white-space: nowrap;
}
.aut-btn-consultar:hover { background: #243d6a; }
.aut-btn-consultar:disabled { opacity: .6; cursor: default; }

.aut-resultado { display: none; }

.aut-resultado-erro {
    background: #fff3f3;
    border: 1.5px solid #f5c6c6;
    border-radius: 8px;
    padding: 14px 16px;
    color: #b83232;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aut-resultado-ok {
    border: 1.5px solid #d0eadc;
    border-radius: 10px;
    overflow: hidden;
}
.aut-resultado-ok-header {
    background: #eaf6ef;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a7a5a;
    font-size: 13px;
    font-weight: 700;
}
.aut-resultado-ok-body {
    padding: 16px;
    font-size: 14px;
    color: #1a2b4a;
    line-height: 1.6;
}
.aut-resultado-ok-body p { margin: 0 0 12px; }
.aut-resultado-ok-body p:last-child { margin-bottom: 0; }

.aut-btn-ver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a2b4a;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    font-family: inherit;
    margin-top: 4px;
}
.aut-btn-ver:hover { background: #243d6a; color: #fff; }

/* =============================================
   MODAL AUTENTICIDADE — MOBILE
   ============================================= */
@media (max-width: 600px) {
    .aut-overlay { align-items: center; justify-content: center; }
    .aut-modal { margin: 16px; border-radius: 14px; max-width: 100%; width: calc(100% - 32px); }
    .aut-modal-header { padding: 18px 20px; }
    .aut-modal-header h3 { font-size: 15px; }
    .aut-modal-body { padding: 20px; }
    .aut-hint { font-size: 13px; }
    .aut-input-row { flex-direction: column; gap: 10px; }
    .aut-input { font-size: 15px; padding: 13px 14px; }
    .aut-btn-consultar { width: 100%; padding: 14px; font-size: 15px; }
    .aut-resultado-erro { font-size: 13px; }
    .aut-resultado-ok-body { font-size: 13px; }
    .aut-btn-ver { width: 100%; justify-content: center; }
}
