:root {
  --auth-ink: #172033;
  --auth-muted: #64748b;
  --auth-line: rgba(15, 23, 42, .1);
  --auth-green: #0f8f5f;
  --auth-blue: #2563eb;
  --auth-violet: #7c3aed;
  --auth-amber: #f59e0b;
}

body.auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-ink);
  background:
    linear-gradient(135deg, rgba(15, 143, 95, .12), rgba(37, 99, 235, .08) 36%, rgba(124, 58, 237, .08) 68%, rgba(245, 158, 11, .12)),
    #f8fafc;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(420px, 560px);
}

.auth-showcase {
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 32px;
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.auth-brand-mark,
.auth-form-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--auth-green), var(--auth-blue));
  box-shadow: 0 18px 35px rgba(15, 143, 95, .24);
}

.auth-brand strong {
  display: block;
  font-size: 18px;
}

.auth-brand span {
  display: block;
  color: var(--auth-muted);
  font-size: 13px;
  margin-top: 3px;
}

.auth-hero {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.auth-hero h1 {
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.18;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-hero p {
  color: #334155;
  font-size: 18px;
  line-height: 1.9;
  margin: 0;
  max-width: 680px;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.auth-feature {
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(10px);
}

.auth-feature i {
  color: var(--auth-green);
  font-size: 22px;
}

.auth-feature strong {
  display: block;
  margin: 8px 0 4px;
}

.auth-feature span {
  color: var(--auth-muted);
  line-height: 1.7;
  font-size: 13px;
}

.auth-panel {
  background: rgba(255, 255, 255, .9);
  border-right: 1px solid var(--auth-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 54px);
}

.auth-card {
  width: 100%;
  max-width: 460px;
}

.auth-card-head {
  margin-bottom: 26px;
}

.auth-form-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--auth-violet), var(--auth-blue));
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}

.auth-card p {
  color: var(--auth-muted);
  margin: 0;
  line-height: 1.8;
}

.auth-card .form-label {
  font-weight: 700;
  color: #334155;
}

.auth-card .form-control,
.auth-card .form-select {
  min-height: 48px;
  border-radius: 14px;
  border-color: rgba(15, 23, 42, .14);
  background-color: #fff;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: var(--auth-green);
  box-shadow: 0 0 0 .2rem rgba(15, 143, 95, .12);
}

.auth-submit {
  min-height: 50px;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--auth-green), var(--auth-blue));
  border: 0;
  box-shadow: 0 18px 35px rgba(37, 99, 235, .16);
}

.auth-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.auth-link-row a {
  color: var(--auth-blue);
  font-weight: 700;
}

.auth-note {
  margin-top: 20px;
  border: 1px solid rgba(15, 143, 95, .16);
  background: rgba(15, 143, 95, .07);
  color: #0f5132;
  border-radius: 16px;
  padding: 13px 14px;
  line-height: 1.8;
  font-size: 13px;
}

.auth-mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.auth-mini span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--auth-line);
  color: #475569;
  font-size: 12px;
}

@media (max-width: 992px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    padding-bottom: 22px;
  }

  .auth-panel {
    border-right: 0;
    border-top: 1px solid var(--auth-line);
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .auth-showcase::before {
    inset: 12px;
    border-radius: 24px;
  }

  .auth-feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 20px;
  }

  .auth-card h2 {
    font-size: 24px;
  }
}
