/* GAD MODE — modern login */

.gm-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink, #231c3d);
  background: #fbfafd;
  position: relative;
  overflow-x: hidden;
}

.gm-login-page::before,
.gm-login-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  top: 50%;
  transform: translateY(-50%);
  background-repeat: no-repeat;
}

.gm-login-page::before {
  left: 0;
  width: min(420px, 42vw);
  height: min(980px, 120vh);
  background-image: url("../img/slider-left-dec.d9a4eb7a2f62.jpg");
  background-position: left center;
  background-size: contain;
}

.gm-login-page::after {
  right: 0;
  width: min(720px, 55vw);
  height: min(720px, 90vh);
  background-image: url("../img/slider-right-dec.fe1fd36c5fda.jpg");
  background-position: right center;
  background-size: contain;
}

.gm-login {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.gm-login__card {
  width: min(1040px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(236, 229, 248, 0.9);
  box-shadow:
    0 24px 60px rgba(91, 33, 182, 0.14),
    0 8px 24px rgba(35, 28, 61, 0.06);
}

.gm-login__intro {
  position: relative;
  min-height: 560px;
  background-image: url("../img/login-left-background.ec3de0923be5.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.gm-login__intro-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(250, 247, 254, 0.08) 24%,
      rgba(76, 29, 149, 0.42) 58%,
      rgba(35, 28, 61, 0.8) 100%
    );
}

.gm-login__intro-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.35rem 2.15rem 2.15rem;
  gap: 2rem;
}

.gm-login__marks {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.gm-login__marks img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(35, 28, 61, 0.22);
}

.gm-login__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(35, 28, 61, 0.35);
}

.gm-login__product {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 14px rgba(35, 28, 61, 0.45);
}

/* Intro copy — no box/container */
.gm-login__intro-bottom {
  max-width: 28rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.gm-login__intro-bottom h2 {
  margin: 0 0 0.7rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 12px rgba(35, 28, 61, 0.45);
}

.gm-login__intro-bottom p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 10px rgba(35, 28, 61, 0.4);
}

/* Right form panel */
.gm-login__form-panel {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 2rem 2rem;
  background: #fff;
}

.gm-login__back {
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 600;
  color: #73698c;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}

.gm-login__back:hover {
  color: #5b21b6;
}

.gm-login__form-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.gm-login__form-head {
  margin-bottom: 1.6rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #ece5f8;
}

.gm-login__form-head h2 {
  margin: 0 0 0.35rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #4c1d95;
  letter-spacing: -0.02em;
}

.gm-login__form-head p {
  margin: 0;
  color: #73698c;
  font-size: 0.94rem;
}

.gm-login__alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.88rem;
  font-weight: 600;
}

.gm-login__form {
  display: grid;
  gap: 1.05rem;
}

.gm-login__field {
  display: grid;
  gap: 0.45rem;
}

.gm-login__field > span:first-child {
  font-size: 0.8rem;
  font-weight: 700;
  color: #231c3d;
}

.gm-login__input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1.5px solid #e8e0f5;
  background: #fcfbfe;
  border-radius: 14px;
  padding: 0 0.9rem;
  min-height: 3.15rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gm-login__input:focus-within {
  border-color: #7c3aed;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.gm-login__input svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #8b7aa8;
}

.gm-login__input:focus-within svg {
  color: #6d28d9;
}

.gm-login__input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.9rem 0;
  font: inherit;
  font-size: 0.95rem;
  color: #231c3d;
  outline: none;
}

.gm-login__input input::placeholder {
  color: #a89bb8;
}

.gm-login__toggle {
  border: 0;
  background: #f3e8ff;
  color: #5b21b6;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.gm-login__toggle:hover {
  background: #e9d5ff;
}

.gm-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.15rem;
}

.gm-login__remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: #73698c;
  user-select: none;
  cursor: pointer;
}

.gm-login__remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #6d28d9;
}

.gm-login__submit {
  margin-top: 0.35rem;
  border: 0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 50%, #7c3aed 100%);
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gm-login__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(91, 33, 182, 0.36);
  filter: brightness(1.03);
}

.gm-login__submit:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gm-login__card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gm-login__intro {
    min-height: 260px;
  }

  .gm-login__intro-content {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .gm-login__intro-bottom {
    max-width: none;
  }

  .gm-login-page::before,
  .gm-login-page::after {
    opacity: 0.22;
  }
}

@media (max-width: 520px) {
  .gm-login {
    padding: 0.75rem;
  }

  .gm-login__card {
    border-radius: 20px;
  }

  .gm-login__form-panel {
    padding: 1.1rem 1.2rem 1.4rem;
  }
}

.gm-captcha {
  margin: 0 0 1rem;
}

.gm-captcha__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.gm-captcha__req {
  color: #c2410c;
}

.gm-captcha__prompt {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: #4c4464;
}

.gm-captcha .g-recaptcha {
  transform-origin: left top;
}

.gm-captcha.is-invalid .g-recaptcha {
  outline: 2px solid #dc2626;
  outline-offset: 4px;
  border-radius: 4px;
}

.gm-captcha__error {
  margin-top: 0.35rem;
  color: #b91c1c;
  font-size: 0.82rem;
}

.gm-login__legal {
  margin-top: 1.15rem;
  padding-top: 0;
  border-top: 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

.gm-login__legal a {
  color: #6d28d9;
  font-weight: 600;
  text-decoration: none;
}

.gm-login__legal a:hover {
  text-decoration: underline;
}
