:root {
  --navy: #102b55;
  --blue: #118fc6;
  --teal: #26c8bd;
  --ink: #17243d;
  --muted: #66758c;
  --border: #dfe8ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(43,200,190,.13),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #f7fbfd,
      #eef6fb
    );
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.account-header {
  min-height: 88px;
  padding: 14px max(25px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand img {
  width: 205px;
}

.brand span {
  margin-left: 56px;
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.back-link {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.account-page {
  width: min(1060px, calc(100% - 36px));
  min-height: calc(100vh - 88px);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: center;
  padding: 55px 0;
}

.eyebrow {
  display: inline-block;
  padding: 7px 12px;
  color: #118c82;
  background: #ddf7f2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.account-message h1 {
  max-width: 600px;
  margin: 18px 0;
  color: #152846;
  font-size: clamp(45px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -3px;
}

.account-message h1 span {
  display: block;
  padding-bottom: .08em;
  background: linear-gradient(
    90deg,
    #153b70,
    #0d8fc7,
    #25bcb4
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.account-message > p {
  max-width: 580px;
  color: #566b84;
  font-size: 18px;
  line-height: 1.65;
}

.privacy-card {
  max-width: 560px;
  margin-top: 28px;
  padding: 19px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: 17px;
}

.privacy-card strong {
  color: #17365e;
}

.privacy-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-card {
  padding: 31px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 25px 65px rgba(28,55,80,.13);
}

.auth-tabs {
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: #eef3f6;
  border-radius: 13px;
}

.auth-tab {
  padding: 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
}

.auth-tab.active {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 3px 10px rgba(30,50,70,.07);
}

.auth-card form {
  margin-top: 24px;
}

.auth-card h2 {
  margin: 0 0 20px;
  font-size: 23px;
}

.auth-card label {
  display: block;
  margin: 15px 0;
  color: #344d69;
  font-size: 13px;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  margin-top: 7px;
  padding: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9e3ea;
  border-radius: 11px;
  outline: none;
}

.auth-card input:focus {
  border-color: #38beb2;
  box-shadow: 0 0 0 3px rgba(56,190,178,.10);
}

.auth-card small {
  color: var(--muted);
}

.primary-button {
  width: 100%;
  margin-top: 19px;
  padding: 13px;
  color: #09253d;
  background: linear-gradient(
    135deg,
    #64ddc5,
    #65aeff
  );
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.form-status {
  min-height: 21px;
  margin-top: 13px;
  color: #a13c3c;
  font-size: 12px;
}

.account-note {
  margin-top: 21px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid #edf1f4;
  text-align: center;
  font-size: 12px;
}

.hidden {
  display: none;
}

@media (max-width: 850px) {
  .account-page {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 40px;
  }

  .account-message {
    text-align: center;
  }

  .account-message > p,
  .privacy-card {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-card {
    width: min(440px, 100%);
    margin: auto;
  }
}

@media (max-width: 520px) {
  .account-header {
    min-height: 72px;
  }

  .brand img {
    width: 165px;
  }

  .brand span {
    margin-left: 45px;
    font-size: 9px;
  }

  .back-link {
    display: none;
  }

  .account-message h1 {
    font-size: 47px;
  }
}

/* Prevent descender clipping in gradient account headline */
.account-message h1 span {
  display: block;
  line-height: 1.12;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.show-password-row {
  margin: 8px 0 3px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: #5f7187 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.show-password-row input {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.show-password-row span {
  line-height: 1;
}

/* Cleaner password helper layout */
.show-password-row {
  margin: 10px 0 0 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.show-password-row + small {
  display: block;
  margin-top: 6px;
  color: #7a899b;
  font-size: 11px;
  line-height: 1.4;
}

.show-password-row input {
  width: 15px !important;
  height: 15px;
  flex: 0 0 15px;
}

.show-password-row span {
  line-height: 1.2;
}

.login-help {
  margin: 8px 0 0;
  text-align: right;
}

.login-help a {
  color: #177f91;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.login-help a:hover {
  text-decoration: underline;
}
