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

:root {
  --bg-top: #0e1522;
  --bg-bottom: #000000;
  --blue-main: #1f78ff;
  --blue-strong: #2d8cff;
  --blue-soft: rgba(45, 140, 255, 0.18);
  --blue-line: rgba(45, 140, 255, 0.4);
  --panel-bg: rgba(3, 10, 24, 0.88);
  --panel-card: rgba(4, 12, 28, 0.92);
  --text-main: #f5f7fb;
  --text-soft: rgba(255, 255, 255, 0.74);
  --text-muted: rgba(255, 255, 255, 0.42);
  --border-soft: rgba(60, 125, 255, 0.14);
  --border-mid: rgba(60, 125, 255, 0.28);
  --input-bg: rgba(12, 24, 48, 0.72);
}

html,
body {
  min-height: 100%;
  font-family: Calibri, Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(#0e1522, #000000);
  color: var(--text-main);
  overflow-x: hidden;
}

/* scrollbar */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #101010;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #03e9f4, #4a5275);
  border-radius: 999px;
}

/* layout principal */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-shell {
  position: relative;
  width: min(1500px, 100%);
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(2, 10, 22, 0.96), rgba(0, 5, 14, 0.96));
  border-radius: 42px;
  border: 1px solid rgba(46, 119, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 40px rgba(25, 102, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.outer-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

.outer-glow-left {
  width: 280px;
  height: 280px;
  top: 0;
  left: -70px;
  background: rgba(35, 114, 255, 0.28);
}

.outer-glow-right {
  width: 220px;
  height: 320px;
  right: -60px;
  bottom: 80px;
  background: rgba(30, 110, 255, 0.26);
}

.brand-side,
.form-side {
  position: relative;
  z-index: 1;
}

/* lado esquerdo */
.brand-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 50px;
  position: relative;
}

.brand-box {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.GH {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.GH img {
  width: min(360px, 72%);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.06));
}

.title-GH span {
  display: block;
  margin-top: 28px;
  text-align: center;

  font-size: clamp(1.4rem, 2.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: clamp(0.08em, 0.2vw, 0.22em);

  color: #f3f5fa;

  white-space: nowrap; /* impede quebrar linha */
}

.brand-divider {
  width: min(430px, 80%);
  height: 2px;
  margin: 32px auto 18px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(60, 125, 255, 0.18) 16%,
      rgba(60, 125, 255, 1) 50%,
      rgba(60, 125, 255, 0.18) 84%,
      transparent 100%
    );
  box-shadow: 0 0 18px rgba(40, 120, 255, 0.55);
}

.brand-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.3rem);
  letter-spacing: 0.18em;
  color: rgba(220, 230, 255, 0.78);
}

.hex-pattern {
  position: absolute;
  width: 190px;
  height: 190px;
  opacity: 0.14;
  filter: drop-shadow(0 0 14px rgba(29, 115, 255, 0.18));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='140' viewBox='0 0 160 140'%3E%3Cg fill='none' stroke='%232c7dff' stroke-width='1.6' opacity='0.9'%3E%3Cpolygon points='40,10 60,22 60,46 40,58 20,46 20,22'/%3E%3Cpolygon points='80,10 100,22 100,46 80,58 60,46 60,22'/%3E%3Cpolygon points='120,10 140,22 140,46 120,58 100,46 100,22'/%3E%3Cpolygon points='20,46 40,58 40,82 20,94 0,82 0,58'/%3E%3Cpolygon points='60,46 80,58 80,82 60,94 40,82 40,58'/%3E%3Cpolygon points='100,46 120,58 120,82 100,94 80,82 80,58'/%3E%3Cpolygon points='40,82 60,94 60,118 40,130 20,118 20,94'/%3E%3Cpolygon points='80,82 100,94 100,118 80,130 60,118 60,94'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.hex-top {
  top: 28px;
  left: 22px;
}

.hex-bottom {
  bottom: 12px;
  right: 34px;
  transform: scale(1.1);
}

/* lado direito */
.form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.quadro-login {
  width: 100%;
  max-width: 620px;
  padding: 56px 56px 42px;
  background: linear-gradient(180deg, rgba(3, 12, 30, 0.96), rgba(2, 9, 22, 0.97));
  border: 1px solid rgba(60, 125, 255, 0.12);
  border-radius: 30px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.015) inset,
    0 18px 40px rgba(0, 0, 0, 0.34);
}

.welcome-text {
  text-align: center;
  color: #47a0ff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.title2 span {
  display: block;
  text-align: center;
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 700;
  color: #f5f7fb;
  margin-bottom: 30px;
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 34px;
}

.title-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(53, 124, 255, 0.62), transparent);
}

.divider-icon {
  font-style: normal;
  color: #2787ff;
  font-size: 1.35rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field-group label {
  display: block;
  color: #f3f5fa;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  border-radius: 16px;
  border: 1px solid rgba(52, 118, 255, 0.14);
  background: linear-gradient(90deg, rgba(14, 27, 53, 0.9), rgba(8, 18, 36, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015);
  transition: 0.25s ease;
}

.field:hover,
.field:focus-within {
  border-color: rgba(52, 118, 255, 0.34);
  box-shadow:
    0 0 0 4px rgba(36, 115, 255, 0.07),
    0 0 22px rgba(36, 115, 255, 0.08);
}

.input-icon {
  width: 58px;
  text-align: center;
  color: #3290ff;
  font-size: 1rem;
  flex-shrink: 0;
}

.field input {
  flex: 1;
  height: 66px;
  background: transparent;
  border: none;
  outline: none;
  color: #f5f7fb;
  font-size: 1.08rem;
  padding-right: 14px;
}

.field input::placeholder {
  color: rgba(192, 208, 235, 0.38);
}

.toggle-password {
  width: 56px;
  height: 66px;
  border: none;
  background: transparent;
  color: rgba(171, 191, 225, 0.55);
  cursor: pointer;
  font-size: 1rem;
}

.toggle-password:hover {
  color: #4a9dff;
}

.forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.forgot-wrap a {
  color: #3f9bff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
}

.forgot-wrap a:hover {
  text-shadow: 0 0 12px rgba(52, 118, 255, 0.42);
}

.input-container {
  margin-top: 8px;
}

.login-btn,
.secondary-btn {
  width: 100%;
  min-height: 66px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.login-btn {
  border: 1px solid rgba(95, 160, 255, 0.28);
  color: #ffffff;
  background: linear-gradient(180deg, #2d86ff, #1a4fe0);
  box-shadow:
    0 10px 24px rgba(32, 97, 255, 0.28),
    0 0 26px rgba(46, 119, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(32, 97, 255, 0.34),
    0 0 34px rgba(46, 119, 255, 0.24);
}

.arrow {
  font-size: 1.2rem;
}

.separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

.separator span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(70, 131, 255, 0.4), transparent);
}

.separator strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  font-weight: 700;
}

.secondary-btn {
  border: 1px solid rgba(46, 119, 255, 0.58);
  color: #3190ff;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.secondary-btn:hover {
  background: rgba(25, 91, 235, 0.08);
  box-shadow: 0 0 22px rgba(46, 119, 255, 0.09);
}

.btn-icon {
  font-size: 1rem;
}

/* modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  padding: 18px;
}

.modal-content {
  width: min(100%, 460px);
  margin: 10vh auto 0;
  background: #ffffff;
  color: #111111;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.close {
  float: right;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #000;
}

/* responsivo */
@media (max-width: 1200px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand-side {
    padding: 56px 28px 22px;
  }

  .form-side {
    padding: 18px 28px 42px;
  }

  .GH img {
    width: min(290px, 58vw);
  }
}

@media (max-width: 768px) {
  .login-page {
    padding: 18px;
  }

  .login-shell {
    border-radius: 28px;
  }

  .brand-side {
    padding: 42px 20px 8px;
  }

  .form-side {
    padding: 10px 16px 22px;
  }

  .quadro-login {
    padding: 30px 20px 24px;
    border-radius: 22px;
  }

  .title-GH span {
    font-size: 1.7rem;
    letter-spacing: 0.16em;
  }

  .brand-subtitle {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .field-group label {
    font-size: 1rem;
  }

  .field,
  .field input,
  .login-btn,
  .secondary-btn {
    min-height: 58px;
    height: 58px;
  }

  .toggle-password {
    height: 58px;
  }
}