﻿/* Explika AI · modern authentication experience */
:root {
  --auth-bg: #ff7300;
  --auth-bg-soft: #ff9500;
  --auth-panel: rgba(61, 25, 6, 0.9);
  --auth-panel-strong: rgba(44, 17, 3, 0.96);
  --auth-line: rgba(255, 255, 255, 0.22);
  --auth-line-soft: rgba(255, 255, 255, 0.14);
  --auth-text: #ffffff;
  --auth-muted: rgba(255, 255, 255, 0.82);
  --auth-gold: #ffd37a;
  --auth-gold-soft: #ffe9bd;
  --auth-orange: #ff7300;
  --auth-green: #7fff7f;
  --auth-radius: 26px;
  --auth-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --auth-display: "Sora", var(--auth-font);
}

/* ── Scrollbar fina (2px), cantos arredondados, laranja ──────────────── */
/* Reativa a scrollbar onde o utilitário antigo a escondia, para permitir
   o estilo fino definido abaixo (o "none" do CSS antigo vencia no Chromium). */
.custom-scroll {
  scrollbar-width: auto;
}

/* Firefox: largura "thin" + cor laranja (limitação do motor). */
@supports (-moz-appearance: none) {
  *,
  .custom-scroll,
  #splashScreen,
  #reset_password_container {
    scrollbar-width: thin;
    scrollbar-color: var(--auth-orange) rgba(69, 26, 3, 0.16);
  }
}

*::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

*::-webkit-scrollbar-track {
  background: rgba(69, 26, 3, 0.16);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--auth-orange);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--auth-bg-soft);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  min-height: 100%;
  background: var(--auth-bg);
}

body#doc_body {
  min-height: 100dvh;
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  animation: none !important;
  color: var(--auth-text);
  font-family: var(--auth-font);
  background:
    radial-gradient(1100px 720px at 88% 4%, rgba(255, 255, 255, 0.22), transparent 58%),
    radial-gradient(900px 650px at 4% 96%, rgba(150, 48, 0, 0.22), transparent 62%),
    linear-gradient(135deg, #ff7300 0%, #ff8b00 52%, #ff9500 100%) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#doc_body *,
#doc_body *::before,
#doc_body *::after {
  box-sizing: border-box;
}

/* ── Full-screen split layout ─────────────────────────────────────────── */
#splashScreen {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  align-items: stretch;
  min-height: 100dvh;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 !important;
  isolation: isolate;
  background-color: var(--auth-bg) !important;
  background-image:
    radial-gradient(900px 620px at 88% 2%, rgba(255, 255, 255, 0.24), transparent 58%),
    linear-gradient(135deg, #ff7300 0%, #ff8b00 52%, #ff9500 100%) !important;
}

#splashScreen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/banners/circle.png") center / cover no-repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
}

#splashScreen > br {
  display: none !important;
}

/* ── Left visual panel ───────────────────────────────────────────────── */
.auth-visual {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(30px, 5vw, 76px);
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 80% at 30% 30%, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0.9;
}

.auth-visual::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -260px;
  top: 6%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 68%);
  pointer-events: none;
}

.auth-visual-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  gap: 42px;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: transparent;
  pointer-events: none;
  opacity: 1;
  animation: authFloat 15s ease-in-out infinite;
}

.auth-orb::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-orb-1 {
  width: 420px;
  height: 420px;
  top: -130px;
  right: -100px;
}

.auth-orb-2 {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: 14%;
  border-color: rgba(255, 255, 255, 0.22);
  animation-delay: -4s;
  animation-duration: 18s;
}

.auth-orb-3 {
  width: 128px;
  height: 128px;
  right: 22%;
  bottom: -36px;
  border-color: rgba(255, 255, 255, 0.34);
  animation-delay: -7s;
  animation-duration: 12s;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  animation: authFadeUp 0.8s 0.05s both;
}

.auth-brand:hover {
  color: #fff;
  text-decoration: none;
}

.auth-brand em {
  color: var(--auth-gold-soft);
  font-style: normal;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 32px rgba(96, 34, 0, 0.22);
}

.auth-brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.auth-visual-copy {
  max-width: 590px;
  margin: auto 0;
  animation: authFadeUp 0.9s 0.16s both;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--auth-green);
  box-shadow: 0 0 0 4px rgba(127, 255, 127, 0.14);
  animation: authPulse 2.2s ease-in-out infinite;
}

.auth-visual-copy h1 {
  margin: 16px 0;
  font-family: var(--auth-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

.auth-visual-copy h1 span {
  font: inherit;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.auth-visual-copy p {
  max-width: 560px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  line-height: 1.6;
}

.auth-visual-bottom {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: authFadeUp 0.9s 0.28s both;
}

.auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 42px);
}

.auth-proof-item strong {
  display: block;
  color: #fff;
  font-family: var(--auth-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-proof-item span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.auth-quote {
  max-width: 470px;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.55);
}

.auth-quote p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.65;
}

.auth-quote span {
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ── Right authentication column ─────────────────────────────────────── */
.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: clamp(28px, 4vw, 60px) clamp(20px, 4vw, 54px);
  position: relative;
  z-index: 2;
  background:
    radial-gradient(760px 560px at 100% 0%, rgba(255, 255, 255, 0.12), transparent 62%),
    radial-gradient(900px 700px at 100% 100%, rgba(120, 40, 0, 0.24), transparent 64%);
}

.auth-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  animation: authFadeUp 0.8s 0.12s both;
}

.auth-stack > * {
  width: 100%;
}

#app-icon {
  display: flex !important;
  justify-content: flex-start !important;
  margin: 0 0 16px !important;
}

#login_panel_icon {
  width: 62px !important;
  height: 62px !important;
  max-width: 62px !important;
  margin: 0 !important;
  border-radius: 18px;
  background-color: rgba(61, 25, 6, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background-size: 78% 78% !important;
  box-shadow: 0 18px 40px rgba(96, 34, 0, 0.24);
}

.auth-head {
  margin: 0 0 14px;
}

.auth-kicker {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-head h2 {
  margin: 8px 0 6px;
  font-family: var(--auth-display);
  font-size: clamp(1.75rem, 2.6vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.auth-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Notice (confirmação de email / erros de registo) ────────────────── */
.auth-notice {
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  animation: authFadeUp 0.35s ease both;
}

.auth-notice[hidden] {
  display: none !important;
}

.auth-notice.is-success {
  border-color: rgba(61, 220, 151, 0.35);
  background: rgba(61, 220, 151, 0.10);
}

.auth-notice.is-warning {
  border-color: rgba(255, 211, 122, 0.35);
  background: rgba(255, 179, 71, 0.10);
}

.auth-notice.is-error {
  border-color: rgba(255, 99, 99, 0.35);
  background: rgba(255, 99, 99, 0.10);
}

.auth-notice-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-notice-body i {
  flex: 0 0 auto;
  color: var(--auth-gold-soft);
  font-size: 16px;
  line-height: 1.2;
}

.auth-notice.is-success .auth-notice-body i {
  color: #a8f5d0;
}

.auth-notice.is-error .auth-notice-body i {
  color: #ffb8b8;
}

.auth-resend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-family: var(--auth-font);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.auth-resend-btn:hover:not(:disabled) {
  border-color: rgba(255, 211, 122, 0.70);
  background: rgba(255, 179, 71, 0.18);
}

.auth-resend-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.auth-resend-btn i {
  font-size: 13px;
}

.auth-resend-status {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 11px;
  line-height: 1.45;
}

.auth-resend-status:empty {
  display: none;
}

.auth-google {
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  animation: authFadeUp 0.7s 0.08s both;
}

.auth-google-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 2px;
}

.auth-google-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  color: #4285f4;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(72, 26, 0, 0.18);
}

.auth-google-icon-inner-input{
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: #4285f4;
  font-size: 18px;
}

.auth-google-head h3 {
  margin: 0;
  color: #fff !important;
  font-family: var(--auth-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-google-head p {
  margin: 2px 0 0;
  color: #fff !important;
  opacity: 0.88;
  font-size: 11.5px;
  line-height: 1.45;
}

#g_id_signin {
  display: flex !important;
  justify-content: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px;
  margin: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

#g_id_signin.is-loading {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

#g_id_signin.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.24) 48%, transparent 76%);
  transform: translateX(-100%);
  animation: authShimmer 1.35s ease-in-out infinite;
}

/* OAuth 2.0 popup · acesso rápido para contas já registadas */
.auth-google-popup-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin: 10px 0 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--auth-font);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-google-popup-btn:hover:not(:disabled) {
  border-color: rgba(255, 211, 122, 0.65);
  background: rgba(255, 179, 71, 0.12);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.10);
}

.auth-google-popup-btn:active:not(:disabled) {
  transform: scale(0.995);
}

.auth-google-popup-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.auth-google-popup-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 179, 71, 0.16);
  border: 1px solid rgba(255, 211, 122, 0.34);
  color: var(--auth-gold-soft);
  font-size: 17px;
}

.auth-google-popup-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.auth-google-popup-copy strong {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-google-popup-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
  line-height: 1.35;
}

.auth-google-popup-btn > .bi-box-arrow-up-right {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

#google_login_log[data-state="error"] {
  color: #ffb8b8 !important;
}

#google_login_log[data-state="success"] {
  color: #a8f5d0 !important;
}

#google_login_log[data-state="info"] {
  color: var(--auth-gold-soft) !important;
}

#google_login_log {
  min-height: 0;
  margin: 8px 0 0 !important;
  color: var(--auth-gold-soft) !important;
  font-size: 11.5px !important;
  line-height: 1.45;
  text-align: center;
}

#google_login_log:empty {
  display: none;
}

.auth-method-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(61, 25, 6, 0.20);
  color: rgba(255, 255, 255, 0.9);
}

.auth-method-loading[hidden],
.auth-methods[hidden] {
  display: none !important;
}

.auth-method-loading p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.auth-method-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin 0.8s linear infinite;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.auth-recover-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 46px;
  margin: 10px 0 0;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--auth-gold-soft);
  font-family: var(--auth-font);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-recover-btn:hover {
  border-color: rgba(255, 211, 122, 0.72);
  background: rgba(255, 179, 71, 0.14);
  color: #fff;
}

.auth-recover-btn:active {
  transform: scale(0.99);
}

.auth-recover-btn i {
  font-size: 16px;
}

.auth-legal {
  margin: 12px 0 0;
  text-align: center;
}

.auth-legal a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
}

.auth-legal a:hover {
  color: var(--auth-gold-soft) !important;
  text-decoration: underline !important;
}

.auth-select-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.auth-select-row select {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin: 0 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-tab {
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--auth-font);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-tab:hover {
  color: #fff;
}

.auth-tab.is-active {
  color: #3a1a05;
  background: #fff;
  box-shadow: 0 10px 26px rgba(96, 34, 0, 0.24);
}

.auth-tab:active {
  transform: scale(0.985);
}

#authentic_login,
#authentic_register {
  width: 100% !important;
  max-width: 400px !important;
  height: auto !important;
  margin: 0 !important;
  animation: authFadeUp 0.38s ease both;
}

.authentic_box_main {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: clamp(20px, 3vw, 30px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--auth-radius) !important;
  background:
    linear-gradient(180deg, rgba(61, 25, 6, 0.93), rgba(41, 16, 3, 0.97)) !important;
  box-shadow:
    0 34px 80px rgba(76, 26, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}


.authentic_box_main > div:first-child {
  display: none !important;
}

.authentic_box_main > hr {
  display: none !important;
}

#login_form,
#form_reg {
  width: 100%;
  margin: 0 !important;
  text-align: left !important;
}

/* Inputs */
#login_form .input-group,
#form_reg .input-group {
  display: flex;
  align-items: stretch;
  height: 54px;
  margin: 10px 0 0 !important;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#login_form .input-group:focus-within,
#form_reg .input-group:focus-within {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.18);
}

#login_form .input-group-text,
#form_reg .input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 52px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #fff !important;
  font-size: 18px;
  line-height: 1;
  opacity: 1;
}

#login_form .input-group-text i,
#form_reg .input-group-text i {
  display: block;
  color: #fff !important;
  font-size: 18px;
  line-height: 1;
}

#login_form .form-control,
#form_reg .form-control {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-family: var(--auth-font);
  font-size: 14px !important;
  box-shadow: none !important;
}

#login_form .form-control::placeholder,
#form_reg .form-control::placeholder {
  color: rgba(255, 255, 255, 0.62) !important;
  font-weight: 500;
}

#login_form .form-control:focus,
#form_reg .form-control:focus {
  background: transparent !important;
  color: #fff !important;
  outline: 0;
  box-shadow: none !important;
}

.input-group.auth-pw {
  position: relative;
}

.input-group.auth-pw .form-control {
  padding-right: 54px !important;
}

#Show_hide_pw_button,
#reg_Show_hide_pw_button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--auth-gold-soft) !important;
  font-size: 17px;
  opacity: 1;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#Show_hide_pw_button:hover,
#reg_Show_hide_pw_button:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

/* Registration extras */
#form_reg {
  text-align: center !important;
}

/* ── Seletor de foto de perfil ───────────────────────────────────────── */
#form_reg .auth-photo {
  position: relative;
  width: 100%;
  margin: 0 0 14px;
}

#form_reg .auth-photo-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 92px;
  padding: 15px 58px 15px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028));
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#form_reg .auth-photo-drop:hover,
#form_reg .auth-photo-drop:focus-within {
  border-color: rgba(255, 211, 122, 0.78);
  background: rgba(255, 179, 71, 0.10);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.14);
}

#form_reg .auth-photo-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255, 211, 122, 0.28), rgba(255, 179, 71, 0.12));
  border: 1px solid rgba(255, 211, 122, 0.45);
  color: var(--auth-gold-soft);
  font-size: 36px;
  line-height: 1;
  box-shadow: inset 0 0 18px rgba(255, 179, 71, 0.12);
}

#form_reg .auth-photo-ring > i {
  display: block;
  line-height: 1;
}

#form_reg .auth-photo-preview {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#form_reg .auth-photo.has-image .auth-photo-preview {
  opacity: 1;
  transform: scale(1);
}

#form_reg .auth-photo.has-image .auth-photo-ring > i {
  opacity: 0;
}

#form_reg .auth-photo-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#form_reg .auth-photo-copy strong {
  color: #fff;
  font-family: var(--auth-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#form_reg .auth-photo-copy > span {
  color: var(--auth-gold-soft);
  font-size: 12px;
  font-weight: 600;
}

#form_reg .auth-photo-copy > span em {
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
  font-weight: 500;
}

#form_reg .auth-photo-copy small {
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#form_reg .auth-photo-badge {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 15px;
  pointer-events: none;
  transform: translateY(-50%);
}

#form_reg .auth-photo-input {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  opacity: 0 !important;
  cursor: pointer;
  font-size: 100px;
}

#form_reg .auth-photo-input:focus {
  outline: none;
}

#form_reg select,
#input_set_my_country,
#input_set_my_location {
  display: block;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  box-sizing: border-box !important;
  margin: 10px 0 0 !important;
  padding: 0 38px 0 14px !important;
  border: 1px solid var(--auth-line) !important;
  border-radius: 14px !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  background-position: right 14px center !important;
  background-size: 16px 12px !important;
  color: #fff !important;
  font-family: var(--auth-font);
  font-size: 13px !important;
  line-height: normal !important;
  text-align: left !important;
  outline: 0;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#form_reg select:focus {
  border-color: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.18) !important;
}

#form_reg select option {
  color: #111827;
  background: #fff;
}

#form_reg > div[style*="display: flex"] {
  gap: 8px;
  margin-top: 0 !important;
}

#result0 {
  min-height: 14px;
  margin: 8px 0 0 !important;
  color: var(--auth-muted);
  font-size: 10px !important;
  font-weight: 700 !important;
}

/* Buttons */
.btn_style {
  width: 100% !important;
  height: 54px !important;
  margin: 14px 0 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(120deg, #ff9a1f 0%, #ff8400 52%, #ff7300 100%) !important;
  color: #fff !important;
  font-family: var(--auth-font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(255, 115, 0, 0.28) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn_style:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(255, 115, 0, 0.36) !important;
  filter: saturate(1.08);
}

.btn_style:active {
  transform: translateY(0) scale(0.995);
}

.btn_style:focus-visible {
  outline: 2px solid rgba(255, 211, 122, 0.9);
  outline-offset: 3px;
}

/* Alerts */
#message-container {
  width: 100%;
}

#message-container .alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--auth-text);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

#message-container .alert-danger {
  border-color: rgba(255, 99, 99, 0.34);
  background: rgba(255, 99, 99, 0.10);
  color: #ffb8b8;
}

#message-container .alert-success {
  border-color: rgba(61, 220, 151, 0.30);
  background: rgba(61, 220, 151, 0.10);
  color: #a8f5d0;
}

#message-container .alert-info {
  border-color: rgba(255, 211, 122, 0.26);
  background: rgba(246, 167, 35, 0.09);
  color: #ffe4b0;
}

/* reCAPTCHA */
.g-recaptcha {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 14px 0 0;
  transform-origin: center;
}

/* Google */
#g_id_signin > div {
  width: 100% !important;
  max-width: 100% !important;
}

#g_id_signin iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px !important;
}

/* Footer */
#pwd_bg_elmnt {
  position: absolute !important;
  right: 24px !important;
  bottom: 18px !important;
  left: auto !important;
  z-index: 6;
  display: flex !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#copyright_text {
  margin: 0 !important;
  color: var(--auth-muted) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-align: right !important;
}

/* Loading screen */
#loading-screen {
  z-index: 3000 !important;
  background-image:
    radial-gradient(600px 420px at 50% 35%, rgba(255, 255, 255, 0.22), transparent 70%) !important;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#splash_icon {
  width: 98px !important;
  height: 98px !important;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.28));
  animation: authPulse 2.2s ease-in-out infinite;
}

/* Reset password modal */
#reset_password_container {
  position: fixed !important;
  inset: 0 !important;
  z-index: 3000 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 20px !important;
  background: rgba(80, 28, 0, 0.54) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

#reset_password_container > div {
  position: relative;
  width: 100% !important;
  max-width: 420px !important;
  margin: auto;
  padding: 26px !important;
  border: 1px solid var(--auth-line) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(61, 25, 6, 0.97), rgba(41, 16, 3, 0.98)) !important;
  box-shadow: 0 34px 90px rgba(76, 26, 0, 0.45) !important;
}

.auth-reset-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  cursor: pointer;
}

.auth-reset-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.auth-reset-head {
  padding: 0 34px 16px 0;
}

.auth-reset-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: rgba(255, 179, 71, 0.16);
  color: var(--auth-gold-soft);
  font-size: 19px;
}

.auth-reset-title {
  margin: 0 0 6px !important;
  color: #fff !important;
  font-family: var(--auth-display);
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.auth-reset-copy {
  margin: 0 !important;
  color: var(--auth-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.55;
}

#reset_password_container p {
  color: var(--auth-muted) !important;
}

#reset_password_container .input-group {
  height: 50px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#reset_password_container .input-group-text {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  padding: 0 !important;
  border: 0 !important;
  background-color: transparent !important;
  color: var(--auth-gold-soft) !important;
  font-size: 16px;
}

#reset_password_container .form-control {
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

#reset_password_container .form-control::placeholder {
  color: rgba(255, 255, 255, 0.62) !important;
}

#reset_password_container #recuperar_senha_result {
  color: var(--auth-gold-soft) !important;
  font-size: 13px !important;
}

/* ── Motion ──────────────────────────────────────────────────────────── */
@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -22px, 0) scale(1.04);
  }
}

@keyframes authPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes authShimmer {
  to {
    transform: translateX(100%);
  }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  #splashScreen {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.94fr);
  }

  .auth-visual {
    padding: 38px;
  }

  .auth-visual-copy h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  }

  .auth-proof {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  #splashScreen {
    display: block !important;
    min-height: 100dvh;
  }

  .auth-visual {
    display: none !important;
  }

  .auth-main {
    min-height: 100dvh;
    padding: 28px 20px 48px;
  }

  .auth-stack {
    max-width: 400px;
  }

  #pwd_bg_elmnt {
    position: static !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 22px !important;
  }

  #copyright_text {
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  #login_form .input-group-text,
  #form_reg .input-group-text {
    display: none !important;
  }

  #login_form .input-group .form-control,
  #form_reg .input-group .form-control {
    border-radius: 14px !important;
  }
}

@media (max-width: 520px) {
  .auth-visual {
    padding: 22px 18px 20px;
  }

  .auth-proof {
    gap: 16px;
  }

  .auth-proof-item strong {
    font-size: 1rem;
  }

  .auth-proof-item span {
    font-size: 9px;
  }

  .auth-main {
    padding: 24px 14px 40px;
  }

  .authentic_box_main {
    padding: 20px 16px !important;
    border-radius: 22px !important;
  }

  .auth-head h2 {
    font-size: 1.55rem;
  }

  .g-recaptcha {
    transform: scale(0.90);
  }

  .auth-google {
    padding: 0;
  }

  .auth-select-row {
    flex-direction: column;
  }

  .auth-select-row select,
  #form_reg select,
  #input_set_my_country,
  #input_set_my_location {
    flex: 0 0 52px !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 380px) {
  .g-recaptcha {
    transform: scale(0.82);
  }

  #login_form .input-group-text,
  #form_reg .input-group-text {
    width: 42px;
  }

  #Show_hide_pw_button,
  #reg_Show_hide_pw_button {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (min-width: 901px) and (max-height: 900px) {
  .auth-main {
    padding: 18px 44px;
  }

  .auth-stack {
    max-width: 400px;
  }

  #app-icon {
    display: none !important;
  }

  .auth-head {
    margin: 0 0 9px;
  }

  .auth-head h2 {
    margin: 5px 0 3px;
    font-size: clamp(1.55rem, 2vw, 1.8rem);
  }

  .auth-head p {
    font-size: 13px;
  }

  .auth-tabs {
    margin: 0 0 9px;
  }

  .auth-tab {
    height: 38px;
  }

  .authentic_box_main {
    padding: 18px 22px !important;
  }

  #login_form .input-group,
  #form_reg .input-group {
    height: 50px;
    margin-top: 8px !important;
  }

  #login_form .form-control,
  #form_reg .form-control {
    height: 48px !important;
  }

  #login_form .input-group-text,
  #form_reg .input-group-text {
    height: 48px !important;
  }

  #Show_hide_pw_button,
  #reg_Show_hide_pw_button {
    height: 38px !important;
    width: 38px !important;
  }

  .g-recaptcha {
    margin-top: 10px !important;
    transform: scale(0.94);
    transform-origin: left center;
  }

  .auth-google {
    margin-bottom: 10px;
    padding: 0;
  }

  .auth-google-head p {
    display: none;
  }

  .auth-google-popup-btn {
    min-height: 46px;
    margin-top: 8px;
    padding: 6px 11px;
  }

  .auth-google-popup-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 14px;
  }

  .auth-google-popup-copy small {
    display: none;
  }

  #g_id_signin {
    min-height: 40px;
    margin-top: 8px !important;
  }

  .auth-method-loading {
    padding: 12px;
  }

  #copyright_text {
    margin-top: 8px !important;
  }

  .auth-visual {
    padding: 40px 46px;
  }

  .auth-visual-inner {
    gap: 26px;
  }

  .auth-visual-copy {
    margin: 0;
  }

  .auth-visual-copy h1 {
    margin: 14px 0 12px;
    font-size: clamp(30px, 3.4vw, 42px);
  }

  .auth-visual-bottom {
    gap: 20px;
  }

  #pwd_bg_elmnt {
    bottom: 8px !important;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  #pwd_bg_elmnt {
    position: static !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  #copyright_text {
    text-align: center !important;
  }

  .auth-main {
    padding: 10px 40px;
  }

  #app-icon {
    display: none !important;
  }

  .auth-head h2 {
    margin-bottom: 6px;
  }

  .auth-head p {
    display: none;
  }

  .auth-tabs {
    margin-bottom: 8px;
  }

  .authentic_box_main {
    padding: 14px 20px !important;
  }

  .g-recaptcha {
    transform: scale(0.88);
    transform-origin: left center;
  }

  #google_login_log {
    margin-bottom: 4px !important;
  }

  .auth-visual {
    padding: 28px 40px;
  }

  .auth-visual-inner {
    gap: 18px;
  }

  .auth-visual-copy h1 {
    margin: 10px 0;
    font-size: clamp(26px, 3vw, 34px);
  }

  .auth-visual-copy p {
    font-size: 15px;
  }

  .auth-visual-bottom {
    gap: 0;
  }

  .auth-quote {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-orb,
  #splash_icon,
  .auth-brand,
  .auth-visual-copy,
  .auth-visual-bottom,
  .auth-stack {
    animation: none !important;
  }

  .btn_style,
  .auth-tab,
  #login_form .input-group,
  #form_reg .input-group {
    transition: none !important;
  }
}

