:root {
  --ink: #17382b;
  --green: #2a7047;
  --lime: #ddeb77;
  --cream: #fffdf8;
  --line: #dce5de;
  --muted: #63756a;
  font-family: Arial, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 5%, #eaf0ca 0, transparent 28%), var(--cream);
}
a {
  color: var(--green);
}
.account-header {
  position: sticky;
  z-index: 5;
  top: 0;
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid #e3e7dc;
  background: #fffdf8ed;
  backdrop-filter: blur(12px);
}
.account-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font:
    700 1.3rem Georgia,
    serif;
}
.account-brand img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  object-fit: cover;
}
.account-header nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.account-header nav > a,
.account-header nav button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font: 700 0.84rem Arial;
  cursor: pointer;
}
.account-header nav .store-return {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.account-header form {
  margin: 0;
}
.account-main {
  width: min(1100px, 100%);
  margin: 42px auto;
  padding: 0 22px;
}
.account-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 12px 35px rgba(23, 56, 43, 0.07);
}
.auth-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  width: min(900px, 100%);
  margin: 5vh auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(23, 56, 43, 0.13);
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 590px;
  padding: 38px;
  color: #fff;
  background: linear-gradient(155deg, #17382be8, #2a7047f2);
}
.auth-aside:before {
  content: "";
  position: absolute;
  inset: 22px 22px auto auto;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.9;
}
.auth-aside h2 {
  position: relative;
  margin: 0 0 12px;
  font:
    700 2.35rem/1 Georgia,
    serif;
}
.auth-aside p {
  position: relative;
  margin: 0;
  color: #d8e5dc;
  line-height: 1.6;
}
.auth-form {
  padding: 44px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}
h1 {
  margin: 0 0 8px;
  font-size: 2.5rem;
}
.auth-intro {
  margin: 0 0 25px;
  color: var(--muted);
  line-height: 1.5;
}
label {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  color: #344e41;
  font-size: 0.84rem;
  font-weight: 750;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #c9d6cc;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: 0.18s;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px #2a70471c;
}
.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 13px 19px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px #2a704729;
}
.auth-form .primary {
  width: 100%;
  margin-top: 7px;
}
.primary:hover {
  background: var(--ink);
}
.link-button {
  text-decoration: none;
}
.auth-switch {
  margin: 22px 0 8px;
  text-align: center;
  color: var(--muted);
}
.auth-help {
  display: block;
  padding-top: 16px;
  border-top: 1px solid #edf0ec;
  color: #718077;
  text-align: center;
  line-height: 1.5;
}
.account-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.account-title h1 {
  margin: 0;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.account-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 1.55rem;
}
.account-card h2:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px #ddeb7740;
}
.address {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 15px 78px 15px 0;
  border-bottom: 1px solid #edf0ec;
}
.address strong {
  color: var(--ink);
}
.address span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.address form {
  position: absolute;
  right: 0;
  top: 16px;
  margin: 0;
}
.danger {
  border: 0;
  background: none;
  color: #a12626;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
}
.check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.check input {
  width: auto;
}
details {
  margin: 18px 0;
  padding: 13px;
  border: 1px solid #e1e7e1;
  border-radius: 10px;
  background: #fbfcf8;
}
summary {
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}
.message {
  padding: 14px 17px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.error {
  background: #fde6e6;
  color: #8c2020;
}
.success {
  background: #e2f4e7;
  color: #175c31;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #e6ebe5;
  border-radius: 11px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid #e9ede8;
  white-space: nowrap;
}
th {
  color: #607167;
  background: #f7f9f5;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
td {
  font-size: 0.88rem;
}
@media (max-width: 720px) {
  .account-header {
    height: 66px;
    padding: 0 14px;
  }
  .account-brand {
    font-size: 1.06rem;
    min-width: 0;
  }
  .account-brand img {
    width: 38px;
    height: 38px;
  }
  .account-header nav > a,
  .account-header nav button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.76rem;
  }
  .account-header nav .account-nav-link {
    width: 40px;
    padding: 0;
    font-size: 0;
  }
  .account-header nav .account-nav-link:before {
    content: "♙";
    display: block;
    margin: auto;
    font-size: 1.45rem;
    line-height: 1;
  }
  .account-header nav .store-return {
    display: none;
  }
  .account-main {
    margin: 24px auto;
    padding: 0 14px;
  }
  .auth-shell {
    display: block;
    margin: 18px auto;
    border-radius: 18px;
  }
  .auth-aside {
    min-height: 180px;
    padding: 27px;
  }
  .auth-aside:before {
    width: 75px;
    height: 75px;
  }
  .auth-aside h2 {
    max-width: 260px;
    font-size: 1.8rem;
  }
  .auth-aside p {
    font-size: 0.88rem;
  }
  .auth-form {
    padding: 28px 23px;
  }
  .auth-form h1 {
    font-size: 2rem;
  }
  .account-title {
    align-items: flex-start;
    gap: 14px;
  }
  .account-title .primary {
    padding: 11px 13px;
    font-size: 0.78rem;
  }
  .account-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-card {
    padding: 22px 18px;
    border-radius: 15px;
  }
  .address {
    padding-right: 62px;
  }
  th,
  td {
    padding: 11px;
  }
}
