* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: #eff6ff;
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at -8% -12%, rgba(72, 121, 180, 0.24) 0%, transparent 58%),
    radial-gradient(960px 520px at 108% 0%, rgba(41, 84, 142, 0.2) 0%, transparent 62%),
    linear-gradient(155deg, #08111f 0%, #0f1c2f 56%, #050a13 100%);
}

.login-page {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

.left-side {
  flex: 0.33;
  background:
    linear-gradient(165deg, rgba(3, 26, 71, 0.97) 0%, rgba(3, 15, 45, 0.98) 58%, rgba(2, 8, 27, 0.99) 100%);
  border-right: 1px solid rgba(125, 176, 236, 0.35);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06), 18px 0 36px rgba(2, 8, 19, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.left-side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(167, 216, 255, 0.16) 0%, transparent 28%),
    repeating-linear-gradient(180deg, rgba(223, 240, 255, 0.08) 0 1px, transparent 1px 34px);
  opacity: 0.26;
}

.login-logo {
  width: min(360px, 78%);
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 28px rgba(6, 22, 51, 0.45));
}

.login-image {
  width: auto;
  height: 100%;
}

.right-side {
  flex: 0.67;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.login-container {
  width: 100%;
  max-width: 470px;
  background: linear-gradient(155deg, rgba(11, 21, 37, 0.9) 0%, rgba(16, 31, 51, 0.92) 100%);
  border: 1px solid rgba(134, 180, 236, 0.34);
  border-radius: 16px;
  box-shadow: 0 20px 46px rgba(2, 10, 21, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 28px 24px 22px;
}

.login-title {
  color: #f4f9ff;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.login-title2 {
  color: #a8c0df;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.form-group-icon {
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, rgba(20, 37, 61, 0.92), rgba(14, 26, 44, 0.92));
  border: 1px solid rgba(129, 165, 211, 0.36);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group-icon:focus-within {
  border-color: rgba(152, 204, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(75, 137, 209, 0.25);
}

.form-group-icon:focus-within .icon-box {
  color: #b9e2ff;
  transform: translateY(-1px) scale(1.06);
  text-shadow: 0 0 12px rgba(102, 187, 255, 0.65);
}

.form-control-icon::placeholder {
  color: #97aecb;
  opacity: 1;
}

.icon-box {
  width: 12%;
  text-align: center;
  color: #74c1ff;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.form-control-icon {
  width: 88%;
  height: 48px;
  border: none;
  outline: none;
  padding: 12px;
  font-size: 0.98em;
  background-color: transparent;
  color: #f2f8ff;
}

.login-button {
  width: 100%;
  height: 48px;
  padding: 12px;
  font-size: 1em;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0f5cc0 0%, #2294ef 100%);
  border: 1px solid rgba(182, 224, 255, 0.58);
  border-radius: 11px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  margin-top: 6px;
  box-shadow: 0 12px 24px rgba(5, 39, 90, 0.36);
}

.login-button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(4, 43, 101, 0.44);
}

.flashes {
  text-align: center;
  margin-bottom: 12px;
}

.flash-message {
  color: #7dc9ff;
  font-size: 0.88em;
}

.login-links {
  text-align: center;
  margin-top: 18px;
}

.login-links a {
  color: #a9c3e4;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9em;
}

.login-links a:hover {
  text-decoration: underline;
  color: #8ed4ff;
}

.text-danger {
  color: #6fc5ff;
  font-size: 0.76rem;
  width: 80%;
  min-height: 24px;
  justify-content: left;
  display: flex;
  padding: 0;
  margin: 8px auto;
}

.politica-texto {
  text-align: center;
  font-size: 0.75rem;
  color: #9bb0c9;
  margin-bottom: 10px;
}

.politica-texto a {
  color: #9bb0c9;
  text-decoration: underline;
}

.politica-texto a:hover {
  color: #c8dcf2;
}

/* Responsivo */
@media (max-width: 1024px) {
  .left-side {
    flex: 0;
    display: none;
  }

  .right-side {
    flex: 1;
    padding: 18px;
  }

  .login-container {
    max-width: 520px;
  }

  .login-title {
    font-size: 1.6em;
  }
}

/* Anchor do widget de idiomas nas telas auth */
.auth-translate {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1200;
  min-height: 26px;
}

@media (max-width: 1024px) {
  .auth-translate {
    top: 10px;
    right: 10px;
    transform: scale(0.96);
    transform-origin: top right;
  }
}

/* Google Translate isolation: bloqueia efeitos globais que causam pisca/reflow */
html,
body,
html.translated-ltr,
html.translated-rtl,
html.translated-ltr body,
html.translated-rtl body {
  top: 0 !important;
}

iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-menu-frame.skiptranslate,
#goog-gt-tt,
.goog-tooltip,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

#gt-mordadam-43217984 {
  isolation: isolate;
  min-height: 26px;
}

#gt-mordadam-43217984,
#gt-mordadam-43217984 * {
  transform: none;
}