.yarvis-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 10, 18, .90);
    backdrop-filter: blur(12px);
}

.yarvis-auth-overlay.hidden {
    display: none;
}

.yarvis-auth-card {
    width: min(420px, 100%);
    box-sizing: border-box;
    padding: 30px;
    border: 1px solid rgba(111, 211, 255, .35);
    border-radius: 22px;
    background: rgba(10, 22, 35, .98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .50);
}

.yarvis-auth-card h2 {
    margin: 0 0 6px;
    font-size: 30px;
    letter-spacing: .08em;
}

.yarvis-auth-card > p {
    margin: 0 0 22px;
    opacity: .72;
}

.yarvis-auth-field {
    display: grid;
    gap: 7px;
    margin: 14px 0;
}

.yarvis-auth-field label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .72;
}

.yarvis-auth-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid rgba(111, 211, 255, .25);
    border-radius: 12px;
    outline: none;
    color: inherit;
    background: rgba(255, 255, 255, .055);
    font: inherit;
}

.yarvis-auth-field input:focus {
    border-color: rgba(111, 211, 255, .75);
}

.yarvis-auth-submit {
    width: 100%;
    margin-top: 12px;
    padding: 13px 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: .05em;
}

.yarvis-auth-error {
    min-height: 20px;
    margin-top: 12px;
    color: #ff9f9f;
    font-size: 13px;
}


/* La autenticación solo se abre desde Configuración > Rastreo. */
.yarvis-auth-card #yarvisAuthClose {
    float: right;
    margin: -3px 0 8px 10px;
    padding: 7px 11px;
    color: #d4f4ff;
    border: 1px solid rgba(111, 211, 255, .35);
    border-radius: 8px;
    background: rgba(49, 101, 125, .25);
    cursor: pointer;
}
.yarvis-auth-card #yarvisAuthClose:hover { background: rgba(49, 101, 125, .52); }
