/* ==========================================================================
   NEXUS GESTÃO 360° — UNIVERSAL AUTH MODAL STYLES (MOBILE & DESKTOP)
   ========================================================================== */
#nexus-auth-overlay, .nexus-auth-overlay {
  position: fixed !important; inset: 0 !important;
  background: radial-gradient(ellipse at center, rgba(16, 16, 22, 0.98) 0%, #060608 100%) !important;
  z-index: 9999999 !important; display: flex !important; align-items: center !important; justify-content: center !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  padding: 1rem !important; overflow-y: auto !important;
  backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important;
}
.nexus-auth-card {
  background: linear-gradient(145deg, #121319, #0c0d12);
  border: 1px solid rgba(197, 160, 89, 0.45); border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px; max-width: 440px; width: 100%;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(197, 160, 89, 0.18);
  display: flex; flex-direction: column; overflow: hidden; position: relative; margin: auto;
}
.nexus-auth-header-cover {
  position: relative; min-height: 220px; display: flex; flex-direction: column;
  justify-content: space-between; padding: 1.5rem 1.25rem; background: #090a0f; overflow: hidden;
}
.auth-portrait-bg {
  position: absolute; inset: 0;
  background: url('/sergio_serra_portrait.jpg') center 20% / cover no-repeat;
  opacity: 0.9; filter: contrast(1.05) brightness(0.95);
}
.auth-overlay-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.2) 0%, rgba(8, 8, 12, 0.6) 50%, #0c0d12 100%);
}
.auth-insignia-row {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
}
.auth-insignia-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(12, 13, 18, 0.75); border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 4px 10px; border-radius: 16px; backdrop-filter: blur(8px);
}
.auth-insignia-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #c5a059; box-shadow: 0 0 6px #c5a059;
}
.auth-insignia-text {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 1.2px; color: #f1e3ad; text-transform: uppercase;
}
.auth-authority-bottom {
  position: relative; z-index: 2; margin-top: auto;
}
.auth-role-tag {
  display: inline-block; padding: 3px 8px;
  background: linear-gradient(90deg, #c5a059, #997836);
  color: #08080a; font-size: 0.58rem; font-weight: 900; letter-spacing: 1.2px;
  text-transform: uppercase; border-radius: 5px; margin-bottom: 6px;
}
.auth-author-name {
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.65rem; font-weight: 900;
  color: #ffffff; line-height: 1.1; margin: 0 0 2px 0;
}
.auth-author-title {
  color: #d4b26f; font-size: 0.75rem; font-weight: 700; margin: 0; letter-spacing: 0.3px;
}
.nexus-auth-body {
  padding: 1.5rem 1.25rem; display: flex; flex-direction: column; background: #0d0e14; position: relative;
}
.auth-title-meta {
  margin-bottom: 1.25rem; text-align: left;
}
.auth-title-meta h2 {
  color: #ffffff; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 2px 0;
}
.auth-title-meta p {
  color: #828599; font-size: 0.75rem; margin: 0;
}
.auth-field-group {
  margin-bottom: 1rem; text-align: left;
}
.auth-field-group label {
  font-size: 0.7rem; color: #d4b26f; font-weight: 700; display: block;
  margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.8px;
}
.auth-input-wrapper {
  position: relative; display: flex; align-items: center;
}
.auth-input-wrapper input {
  width: 100%; padding: 0.85rem 2.8rem 0.85rem 1rem; border-radius: 12px;
  background: #14151d; border: 1px solid rgba(197, 160, 89, 0.35);
  color: #ffffff; font-size: 0.88rem; outline: none; box-sizing: border-box; letter-spacing: 1px;
}
.auth-input-wrapper button {
  position: absolute; right: 12px; background: none; border: none;
  color: #e5c07b; cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center;
}
.auth-save-row {
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px; text-align: left;
}
.auth-save-row input {
  accent-color: #c5a059; width: 16px; height: 16px; cursor: pointer;
}
.auth-save-row label {
  font-size: 0.75rem; color: #a1a4b5; cursor: pointer; user-select: none;
}
.auth-error-box {
  display: none; color: #ff6b6b; background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3); padding: 8px 10px; border-radius: 8px;
  font-size: 0.78rem; margin-bottom: 1rem; font-weight: 600;
}
.auth-submit-btn {
  width: 100%; padding: 0.9rem; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #d4b26f 0%, #c5a059 50%, #8d6b24 100%);
  color: #08080a; font-weight: 900; font-size: 0.92rem; letter-spacing: 0.3px; cursor: pointer;
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.35); transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-submit-btn:hover { transform: scale(1.02); }
.auth-submit-btn:active { transform: scale(0.97); }
