.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

.auth-page {
  position: relative;
  padding: 148px 20px 88px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 173, 200, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(155, 227, 188, 0.2), transparent 30%),
    linear-gradient(180deg, #eff6fb 0%, #f7fbfd 48%, #ffffff 100%);
}

.auth-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.auth-shell > * {
  min-width: 0;
}

.auth-aside,
.auth-card {
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 61, 103, 0.08);
  box-shadow: 0 22px 56px rgba(17, 58, 94, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-aside {
  padding: 34px 30px;
  color: #123b61;
  background:
    linear-gradient(160deg, rgba(12, 58, 102, 0.94) 0%, rgba(21, 98, 126, 0.92) 48%, rgba(13, 149, 122, 0.88) 100%);
  color: #f7fbff;
  overflow: hidden;
  position: relative;
}

.auth-aside::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #dff7ff;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.auth-aside h1,
.auth-aside h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.3vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.auth-aside p {
  margin: 0;
  color: rgba(245, 250, 255, 0.9);
  font-size: 1rem;
  line-height: 1.72;
}

.auth-benefits {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth-benefits li {
  list-style: none;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fdff;
  font-weight: 500;
}

.auth-card {
  padding: 34px 30px;
}

.auth-card h2 {
  margin: 0 0 10px;
  color: #0e3358;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  line-height: 1.02;
}

.auth-card p {
  margin: 0 0 18px;
  color: #4b6077;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.auth-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #16385d;
}

.auth-field input,
.auth-field button,
.auth-field textarea {
  font: inherit;
}

.auth-field input {
  width: 100%;
  max-width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(18, 67, 111, 0.12);
  background: #ffffff;
  color: #15365a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.auth-password-wrap input {
  padding-right: 54px;
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5b7187;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.auth-password-toggle:hover {
  background: rgba(14, 51, 88, 0.08);
  color: #14385c;
}

.auth-password-toggle:focus-visible {
  outline: none;
  background: rgba(28, 181, 215, 0.14);
  box-shadow: 0 0 0 3px rgba(28, 181, 215, 0.18);
}

.auth-password-toggle i {
  pointer-events: none;
  font-size: 0.95rem;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(11, 143, 176, 0.55);
  box-shadow: 0 0 0 4px rgba(28, 181, 215, 0.16);
}

.auth-inline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-help {
  font-size: 0.92rem;
  color: #5b7187;
}

.auth-help a,
.auth-switch a,
.auth-aux a,
.auth-account-meta a {
  color: #0c7da8;
  font-weight: 700;
  text-decoration: none;
}

.auth-help a:hover,
.auth-switch a:hover,
.auth-aux a:hover,
.auth-account-meta a:hover {
  text-decoration: underline;
}

.auth-submit,
.auth-secondary,
.auth-danger {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.auth-submit {
  background: linear-gradient(135deg, #0d9a85 0%, #0f78ba 100%);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(15, 120, 186, 0.2);
}

.auth-secondary {
  background: #eaf5fb;
  color: #0d4a73;
  border: 1px solid rgba(13, 74, 115, 0.08);
}

.auth-danger {
  background: #fff1f2;
  color: #a11d2f;
  border: 1px solid rgba(161, 29, 47, 0.12);
}

.auth-submit:hover,
.auth-secondary:hover,
.auth-danger:hover {
  transform: translateY(-1px);
}

.auth-submit:disabled,
.auth-secondary:disabled,
.auth-danger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.auth-switch,
.auth-aux {
  margin-top: 8px;
  color: #5b7187;
  font-size: 0.96rem;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.auth-alert--success,
.auth-alert--ok {
  background: #ecfbf4;
  border: 1px solid #bfe9d2;
  color: #15633a;
}

.auth-alert--error {
  background: #fff2f3;
  border: 1px solid #f0c0c6;
  color: #97263a;
}

.auth-alert--info {
  background: #edf7ff;
  border: 1px solid #c8e4f6;
  color: #16527c;
}

.auth-code-input {
  font-size: 1.35rem;
  text-align: center;
  letter-spacing: 0.42em;
  font-weight: 800;
}

.auth-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid rgba(14, 51, 88, 0.08);
  color: #4e6378;
  font-size: 0.94rem;
  line-height: 1.65;
}

.auth-account {
  display: grid;
  gap: 18px;
}

.auth-account-card {
  padding: 20px 22px;
  border-radius: 22px;
  background: #f7fbff;
  border: 1px solid rgba(13, 74, 115, 0.08);
}

.auth-account-card h3 {
  margin: 0 0 8px;
  color: #133b61;
  font-size: 1.1rem;
}

.auth-account-meta {
  display: grid;
  gap: 8px;
  color: #4c6278;
}

.auth-account-meta strong {
  color: #16385d;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfbf4;
  color: #15633a;
  font-weight: 700;
  font-size: 0.85rem;
}

.auth-account-section {
  width: min(1120px, 100%);
  margin: 28px auto 0;
  padding: 32px 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 61, 103, 0.08);
  box-shadow: 0 22px 56px rgba(17, 58, 94, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}

.auth-section-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf6ff;
  color: #0d6487;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-section-header h2 {
  margin: 0 0 10px;
  color: #0e3358;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  line-height: 1.04;
}

.auth-section-header p {
  margin: 0;
  color: #51657b;
  line-height: 1.72;
}

.auth-empty-state,
.auth-estimate-feature,
.auth-estimate-card {
  border-radius: 26px;
  background: #f8fbff;
  border: 1px solid rgba(13, 74, 115, 0.08);
}

.auth-empty-state {
  padding: 28px 24px;
  text-align: left;
}

.auth-empty-state h3 {
  margin: 0 0 10px;
  color: #123a5f;
  font-size: 1.35rem;
}

.auth-empty-state p {
  margin: 0 0 18px;
  color: #5b7187;
  line-height: 1.7;
}

.auth-estimate-feature {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
  padding: 24px;
  margin-bottom: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 255, 0.94)),
    radial-gradient(circle at top right, rgba(43, 196, 227, 0.12), transparent 34%);
}

.auth-estimate-feature__main h3 {
  margin: 12px 0 10px;
  color: #0d3559;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.02;
}

.auth-estimate-feature__main p {
  margin: 0;
  color: #50667b;
  line-height: 1.72;
}

.auth-estimate-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.auth-estimate-pricing__item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(13, 74, 115, 0.06);
  border: 1px solid rgba(13, 74, 115, 0.08);
}

.auth-estimate-pricing__item span {
  display: block;
  margin-bottom: 6px;
  color: #60768b;
  font-size: 0.88rem;
}

.auth-estimate-pricing__item strong {
  color: #11395e;
  font-size: 1.08rem;
}

.auth-estimate-feature__side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.auth-estimate-meta {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 74, 115, 0.08);
  color: #53697e;
}

.auth-estimate-meta strong {
  color: #14395d;
}

.auth-estimate-actions,
.auth-estimate-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-estimates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.auth-estimate-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-estimate-card:hover,
.auth-estimate-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(20, 111, 152, 0.18);
  box-shadow: 0 16px 28px rgba(16, 62, 97, 0.08);
}

.auth-estimate-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-estimate-card__code,
.auth-estimate-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-estimate-card__code {
  background: rgba(14, 102, 135, 0.08);
  color: #0c6584;
}

.auth-estimate-card__badge {
  background: #ecfbf4;
  color: #15633a;
}

.auth-estimate-card h3 {
  margin: 0;
  color: #12395e;
  font-size: 1.2rem;
  line-height: 1.18;
}

.auth-estimate-card p {
  margin: 0;
  color: #62778b;
  line-height: 1.6;
}

.auth-estimate-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-estimate-card__stats span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(13, 74, 115, 0.06);
  color: #4d6579;
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-estimate-card__total {
  color: #0d4d78;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-estimate-card__foot {
  color: #71869a;
  font-size: 0.88rem;
}

@media (max-width: 991px) {
  .auth-page {
    padding-top: 110px;
  }

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

  .auth-aside,
  .auth-card {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .auth-account-section {
    padding: 28px 22px;
    border-radius: 26px;
  }

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

  .auth-estimates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 68px;
  }

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

  .auth-aside h1,
  .auth-aside h2 {
    font-size: 2.2rem;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .auth-account-section {
    margin-top: 18px;
    padding: 24px 18px;
  }

  .auth-section-header {
    margin-bottom: 18px;
  }

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

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

  .auth-estimate-actions,
  .auth-estimate-card__actions {
    width: 100%;
  }

  .auth-estimate-actions .auth-submit,
  .auth-estimate-actions .auth-secondary,
  .auth-estimate-card__actions .auth-submit,
  .auth-estimate-card__actions .auth-secondary {
    width: 100%;
  }

  .auth-actions {
    width: 100%;
  }

  .auth-actions .auth-submit,
  .auth-actions .auth-secondary,
  .auth-actions .auth-danger {
    width: 100%;
  }
}
