/* ---------- Auth Split Layout ---------- */
#auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 35%, rgba(99, 102, 241, 0.18), transparent 34%),
    linear-gradient(135deg, #0b0d14 0%, #111827 52%, #0b0d14 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 56px);
}

.auth-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.auth-mark-legal {
  display: none;
}

.auth-mark-bancarias {
  display: none;
}

.auth-box {
  background: linear-gradient(145deg, rgba(16, 22, 38, 0.46), rgba(12, 16, 30, 0.32));
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  padding: 40px;
  border-radius: 18px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border: 1px solid rgba(180, 210, 255, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

html.profile-oab #auth-overlay,
body.profile-oab #auth-overlay {
  background:
    url('../oab_neural_bg.svg') no-repeat center center,
    linear-gradient(135deg, rgba(7, 11, 20, 0.88) 0%, rgba(12, 27, 52, 0.86) 46%, rgba(8, 9, 16, 0.94) 100%),
    repeating-linear-gradient(90deg, rgba(59, 130, 246, 0.04) 0, rgba(59, 130, 246, 0.04) 1px, transparent 1px, transparent 74px);
  background-size: min(1840px, 128vw) auto, cover, 74px 74px;
  background-position: center center, center center, center center;
}

html.profile-oab #auth-overlay::before,
body.profile-oab #auth-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(220, 38, 38, 0.07), transparent 34%),
    linear-gradient(90deg, rgba(5, 8, 13, 0.32), transparent 18%, transparent 82%, rgba(5, 8, 13, 0.34)),
    linear-gradient(180deg, rgba(5, 8, 13, 0.10), transparent 42%, rgba(0, 0, 0, 0.22));
}

html.profile-oab #auth-overlay::after,
body.profile-oab #auth-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0 30%, rgba(5, 8, 13, 0.08) 50%, rgba(5, 8, 13, 0.58) 100%);
}

html.profile-oab .auth-box,
body.profile-oab .auth-box {
  position: relative;
  z-index: 2;
  max-width: 480px;
  padding: 46px 48px 42px;
  background:
    linear-gradient(180deg, rgba(17, 27, 43, 0.84), rgba(7, 12, 22, 0.72)),
    rgba(5, 8, 13, 0.70);
  border: 1px solid rgba(96, 165, 250, 0.24);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html.profile-oab .auth-box::before,
body.profile-oab .auth-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.78), rgba(59, 130, 246, 0.66), transparent);
}

html.profile-oab .auth-mark,
body.profile-oab .auth-mark {
  width: 118px;
  height: 104px;
  margin: 0 auto 18px;
  color: #f87171;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.profile-oab .auth-mark-medical,
body.profile-oab .auth-mark-medical {
  display: none;
}

html.profile-oab .auth-mark-legal,
body.profile-oab .auth-mark-legal {
  display: block;
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 10px rgba(220, 38, 38, 0.28));
}

html.profile-oab .auth-box h2,
body.profile-oab .auth-box h2 {
  color: #ffffff !important;
  letter-spacing: 0;
}

html.profile-oab .auth-box label,
body.profile-oab .auth-box label {
  color: rgba(226, 232, 240, 0.88) !important;
}

html.profile-oab .auth-admin-identity,
body.profile-oab .auth-admin-identity {
  background: rgba(8, 15, 27, 0.58);
  border-color: rgba(96, 165, 250, 0.24);
}

html.profile-oab .auth-box input,
body.profile-oab .auth-box input {
  background: rgba(3, 7, 13, 0.58) !important;
  border-color: rgba(142, 165, 193, 0.24) !important;
}

html.profile-oab .auth-box input:focus,
body.profile-oab .auth-box input:focus {
  border-color: rgba(248, 113, 113, 0.68) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.14);
}

html.profile-oab .auth-box #auth-submit,
body.profile-oab .auth-box #auth-submit {
  background: linear-gradient(135deg, #dc2626, #2563eb) !important;
  color: #ffffff !important;
  border: 1px solid rgba(96, 165, 250, 0.30) !important;
  box-shadow: 0 14px 28px rgba(4, 11, 22, 0.42);
}

html.profile-oab .auth-box #auth-submit:hover,
body.profile-oab .auth-box #auth-submit:hover {
  background: linear-gradient(135deg, #ef4444, #3b82f6) !important;
}

/* ---------- Carreiras Bancárias ---------- */
html.profile-bancarias #auth-overlay,
body.profile-bancarias #auth-overlay {
  background:
    radial-gradient(circle at 18% 14%, rgba(251, 191, 36, 0.16), transparent 25%),
    radial-gradient(circle at 84% 84%, rgba(34, 197, 94, 0.15), transparent 28%),
    linear-gradient(135deg, #071423 0%, #0b2940 48%, #071b2c 100%);
}

html.profile-bancarias #auth-overlay::before,
body.profile-bancarias #auth-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.035) 42% 43%, transparent 43% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px);
}

html.profile-bancarias .auth-box,
body.profile-bancarias .auth-box {
  position: relative;
  z-index: 1;
  max-width: 430px;
  padding: 38px 42px 40px;
  background: linear-gradient(155deg, rgba(10, 34, 54, 0.93), rgba(5, 20, 35, 0.9));
  border-color: rgba(96, 165, 250, 0.25);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.06);
}

html.profile-bancarias .auth-mark,
body.profile-bancarias .auth-mark {
  width: 100%;
  margin: 0 0 18px;
  line-height: 0;
}

html.profile-bancarias .auth-mark-medical,
html.profile-bancarias .auth-mark-legal,
body.profile-bancarias .auth-mark-medical,
body.profile-bancarias .auth-mark-legal {
  display: none;
}

html.profile-bancarias .auth-mark-bancarias,
body.profile-bancarias .auth-mark-bancarias {
  display: block;
  width: min(96px, 32vw);
  max-width: 96px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(245, 158, 11, 0.16));
}

html.profile-bancarias .auth-box h2,
body.profile-bancarias .auth-box h2 {
  color: #ffffff !important;
}

html.profile-bancarias .auth-box input,
body.profile-bancarias .auth-box input {
  background: rgba(5, 17, 31, 0.58) !important;
  border-color: rgba(125, 211, 252, 0.21) !important;
}

html.profile-bancarias .auth-box input:focus,
body.profile-bancarias .auth-box input:focus {
  border-color: rgba(163, 230, 53, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.12) !important;
}

html.profile-bancarias .auth-box #auth-submit,
body.profile-bancarias .auth-box #auth-submit {
  background: linear-gradient(135deg, #1d6e9c, #147a65) !important;
  box-shadow: 0 12px 26px rgba(20, 122, 101, 0.28);
}

html.profile-bancarias .auth-box #auth-submit:hover,
body.profile-bancarias .auth-box #auth-submit:hover {
  background: linear-gradient(135deg, #2588bd, #159d7e) !important;
}

.auth-box h2 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.auth-maintenance-notice {
  margin: 0 0 22px;
  padding: 11px 12px;
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.34);
  color: rgba(219, 234, 254, 0.90);
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 800;
}

.auth-admin-identity {
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid rgba(129, 140, 248, 0.24);
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.10);
  text-align: left;
}

.auth-admin-identity span {
  display: block;
  margin-bottom: 2px;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-admin-identity strong {
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.98rem;
}

.auth-box label {
  color: rgba(226, 232, 240, 0.82) !important;
}

.auth-box input {
  background: rgba(7, 12, 24, 0.34) !important;
  color: rgba(248, 250, 252, 0.94) !important;
  border-color: rgba(180, 210, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-box input::placeholder {
  color: rgba(203, 213, 225, 0.42);
}

.auth-box input:focus {
  border-color: rgba(129, 140, 248, 0.62) !important;
  background: rgba(9, 14, 28, 0.48) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.auth-box #auth-submit {
  background: rgba(99, 102, 241, 0.82) !important;
  box-shadow: 0 10px 24px rgba(67, 56, 202, 0.28);
}

.auth-box #auth-submit:hover {
  background: rgba(99, 102, 241, 0.96) !important;
}

#auth-error {
  color: #fca5a5 !important;
  background: rgba(127, 29, 29, 0.34) !important;
  border: 1px solid rgba(248, 113, 113, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Mobile Student UX ---------- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.app-layout,
.main-content,
.content-body,
.section-view {
  min-width: 0;
}
