@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --auth-bg: #edf1f3;
  --auth-card: #f8fafc;
  --auth-border: rgba(23, 48, 68, 0.12);
  --auth-ink: #1f2f3d;
  --auth-soft: #73879a;
  --auth-brand: #000000;
  --auth-brand-dark: #111111;
  --auth-accent: var(--auth-brand);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--auth-ink);
  background: var(--auth-bg);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--auth-card);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.auth-visual {
  position: relative;
  background:
    linear-gradient(185deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62)),
    url("https://www.g3arquitectura.com/wp-content/uploads/2022/06/5.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(181, 228, 247, 0.34), transparent 48%),
    radial-gradient(circle at 80% 80%, rgba(18, 102, 120, 0.4), transparent 46%);
}

.auth-visual-copy {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 36px;
  z-index: 2;
  color: #eaf4f8;
}

.auth-visual-kicker {
  margin: 0 0 14px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.88;
}

.auth-visual-copy h1 {
  margin: 0 0 12px;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(2.2rem, 3.3vw, 3.6rem);
  line-height: 1.06;
}

.auth-visual-copy p {
  margin: 0;
  max-width: 32ch;
  color: rgba(232, 246, 252, 0.94);
  font-size: 1rem;
  line-height: 1.42;
}

.auth-form-pane {
  display: flex;
  flex-direction: column;
  padding: 42px 48px 34px;
}

.auth-brand {
  margin-bottom: 22px;
}

.auth-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 0;
}

.auth-brand-link {
  text-decoration: none;
  border-bottom: 0;
  color: inherit;
}

.auth-brand-link:hover,
.auth-brand-link:focus,
.auth-brand-link:visited,
.forgot-brand-link:hover,
.forgot-brand-link:focus,
.forgot-brand-link:visited {
  text-decoration: none;
  border-bottom: 0;
}

.auth-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.auth-brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  margin-bottom: 0;
}

.auth-brand-title {
  margin: 0;
  color: var(--auth-brand);
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 3rem;
  line-height: 1.06;
  font-weight: 700;
}

.auth-brand-subtitle {
  margin: 0;
  color: var(--auth-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.auth-form-pane h2 {
  margin: 8px 0 6px;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 1.55rem;
  line-height: 1.02;
}

.auth-lead {
  margin: 0 0 22px;
  color: var(--auth-soft);
  font-size: 0.98rem;
  max-width: max-content;
}

.auth-form {
  display: grid;
  gap: 0;
}

.auth-form label {
  display: flow-root;
  gap: 0;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--auth-soft);
  font-weight: 800;
}

.label-row a {
  text-decoration: none;
  color: var(--auth-brand);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.auth-input {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(26, 56, 78, 0.14);
  background: #eef3f6;
  color: #2b3f4f;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0 16px;
  outline: none;
}

.auth-input:focus {
  border-color: rgba(91, 187, 227, 0.62);
  box-shadow: 0 0 0 3px rgba(91, 187, 227, 0.22);
}

.auth-input.input-error {
  border-color: #cb3c3c;
  box-shadow: 0 0 0 3px rgba(203, 60, 60, 0.12);
}

.error-text {
  display: block;
  min-height: 16px;
  margin-top: 3px;
  color: #cb3c3c;
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-password-wrap {
  position: relative;
}

.auth-toggle-pass {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6a8294;
  font-size: 0.84rem;
  cursor: pointer;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #677f92;
  font-size: 0.9rem;
}

.auth-submit {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: linear-gradient(120deg, var(--auth-brand), var(--auth-brand-dark));
}

.auth-alt {
  margin-top: 18px;
  text-align: center;
  color: #6c8395;
  font-size: 0.93rem;
}

.auth-alt a {
  text-decoration: none;
  color: var(--auth-brand);
  font-weight: 800;
}

.auth-social {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-social button {
  height: 44px;
  border: 1px solid rgba(26, 56, 78, 0.12);
  border-radius: 10px;
  background: #edf2f6;
  color: #556e80;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-social-stack {
  grid-template-columns: 1fr;
}

.auth-social-stack button {
  width: 100%;
}

.auth-social .btn-google {
  background: #f59e0b;
  color: #ffffff;
  border-color: #d97706;
}

.auth-social .btn-apple {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.google-g {
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-legal {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-legal a {
  text-decoration: none;
  color: #6c8395;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-home-back {
  font-weight: 800;
}

.auth-footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 24px;
}

.auth-footer a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.67rem;
  color: #8b9dac;
  font-weight: 700;
}

.auth-forgot {
  margin-top: 8px;
}

.auth-link-btn {
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--auth-accent);
  font-weight: 800;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
}

.forgot-page {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  overflow: hidden;
  background: #dfe4e8;
}

.forgot-bg-map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(245, 247, 249, 0.82), rgba(245, 247, 249, 0.82)),
    repeating-linear-gradient(120deg, rgba(161, 173, 182, 0.24) 0, rgba(161, 173, 182, 0.24) 2px, transparent 2px, transparent 36px),
    repeating-linear-gradient(35deg, rgba(161, 173, 182, 0.2) 0, rgba(161, 173, 182, 0.2) 1px, transparent 1px, transparent 28px),
    radial-gradient(circle at 55% 45%, rgba(184, 196, 205, 0.45), rgba(220, 228, 234, 0.84) 65%);
}

.forgot-wrap {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  display: grid;
  gap: 22px;
  justify-items: center;
}

.forgot-brand {
  text-align: center;
}

.forgot-brand-link {
  display: block;
  text-decoration: none;
  border-bottom: 0;
  color: inherit;
}

.forgot-brand-logo {
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  object-fit: contain;
  display: block;
}

.forgot-brand-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 2.55rem;
  line-height: 1.02;
  color: var(--auth-brand);
}

.forgot-brand-subtitle {
  margin: 6px 0 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a9dac;
  font-size: 0.74rem;
  font-weight: 800;
}

.forgot-card {
  width: min(100%, 520px);
  background: #f7fafc;
  border: 1px solid rgba(23, 48, 68, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(11, 31, 47, 0.14);
  padding: 34px 34px 28px;
}

.forgot-card h1 {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: 2.1rem;
  line-height: 1.08;
}

.forgot-lead {
  margin: 0 0 20px;
  color: #6c8192;
  font-size: 0.96rem;
  max-width: 42ch;
}

.forgot-back-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--auth-brand);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
}

.forgot-support {
  margin: 0;
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aaab7;
  font-size: 0.66rem;
  font-weight: 800;
}

.auth-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-remember a {
  color: var(--auth-brand);
  text-decoration: none;
  font-weight: 700;
}

.auth-divider {
  margin: 14px 0 10px;
  position: relative;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(34, 60, 80, 0.16);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 10px;
  background: var(--auth-card);
  color: #8a9baa;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.register-shell {
  width: 100%;
  min-height: 100vh;
  max-width: none;
  border-radius: 0;
}

.register-form-pane {
  padding: 38px 48px 30px;
}

.register-form-pane .auth-brand-title {
  font-size: 2.25rem;
}

.register-form-pane h2 {
  font-size: 1.55rem;
  margin-top: 4px;
}

.register-social {
  margin-top: 8px;
}

.register-social button {
  background: #f6f8fa;
}

.register-visual {
  background:
    linear-gradient(185deg, rgba(91, 187, 227, 0.12), rgba(7, 68, 90, 0.58)),
    linear-gradient(145deg, #2a85c4 0%, #66a4d2 26%, #0f2f45 100%);
}

.register-overlay-card {
  position: absolute;
  right: 34px;
  bottom: 38px;
  width: min(330px, calc(100% - 64px));
  border-radius: 26px;
  background: rgba(245, 250, 253, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.54);
  padding: 26px 28px;
  box-shadow: 0 16px 34px rgba(8, 26, 40, 0.28);
  backdrop-filter: blur(5px);
}

.register-overlay-card .auth-visual-kicker {
  margin-bottom: 10px;
  color: var(--auth-brand);
  opacity: 1;
}

.register-overlay-card h3 {
  margin: 0;
  color: #1f2f3d;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
  line-height: 1.08;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-visual {
    min-height: 260px;
  }

  .auth-form-pane {
    padding: 28px 22px 24px;
  }

  .auth-two-cols {
    grid-template-columns: 1fr;
  }

  .register-overlay-card {
    right: 18px;
    left: 18px;
    width: auto;
    bottom: 18px;
  }
}
