@font-face {
  font-family: "Balkara";
  src: url("../fonts/balkara-condensed.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #111111;
  --muted: #6e6e6e;
  --line: #d5ccc3;
  --soft-line: #e9e4df;
  --paper: #ffffff;
  --alert: #9d2c1f;
  --success: #1e6a3a;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.auth-header {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  text-align: center;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.auth-brand-name,
.auth-card h1 strong,
.legal-card h1,
.legal-card h2 {
  font-family: "Balkara", Georgia, serif;
  font-weight: 400;
}

.auth-brand-name {
  font-size: 29px;
}

.auth-brand-dot {
  font-size: 24px;
}

.auth-photo {
  width: 100%;
  height: 90px;
  overflow: hidden;
}

.auth-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-main {
  min-height: calc(100vh - 175px);
  padding: 34px 24px 72px;
}

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

.auth-card h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0 0 30px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.auth-card h1 strong {
  font-size: 34px;
}

.flash-list {
  display: grid;
  gap: 8px;
  margin: -8px 0 20px;
}

.flash {
  margin: 0;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.35;
}

.flash-error {
  color: var(--alert);
  background: #fff3f0;
}

.flash-success {
  color: var(--success);
  background: #edf8f1;
}

.flash-info {
  color: #3a4c72;
  background: #f0f4ff;
}

.auth-form,
.form-fields {
  display: grid;
  gap: 10px;
}

.form-fields + .form-fields {
  margin-top: 54px;
}

.form-field {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  font-size: 24px;
  line-height: 1.1;
}

.form-field input {
  width: 100%;
  height: 33px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 17px;
}

.form-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.09);
}

.login-form {
  gap: 12px;
}

.login-form .form-field {
  grid-template-columns: 130px minmax(0, 280px);
  justify-content: center;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 30px;
  font-size: 16px;
}

.form-footer a {
  text-decoration: none;
}

.form-footer a:hover,
.legal-card a:hover {
  text-decoration: underline;
}

.primary-button,
.secondary-button {
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 17px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
}

.primary-button {
  color: #fff;
  background: var(--ink);
}

.primary-button:hover {
  background: #323232;
}

.secondary-button {
  color: var(--ink);
  background: #fff;
}

.secondary-button:hover {
  color: #fff;
  background: var(--ink);
}

.auto-code-note {
  margin: 25px 0 18px 258px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.consent-list {
  display: grid;
  gap: 16px;
  width: min(100%, 575px);
  margin: 26px 0 0 auto;
}

.consent-row {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.35;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}

.consent-row a {
  text-underline-offset: 2px;
}

.register-footer {
  margin-top: 28px;
}

.account-card {
  width: min(100%, 660px);
}

.account-greeting {
  margin: 0 0 25px;
  font-size: 24px;
}

.customer-code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 27px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f3f3f3;
}

.customer-code span {
  font-size: 17px;
}

.customer-code strong {
  font-size: 25px;
  letter-spacing: 0.04em;
}

.account-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--soft-line);
}

.account-details div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 17px;
  line-height: 1.35;
}

.account-details dt {
  color: var(--muted);
}

.account-details dd {
  margin: 0;
}

.account-footer form {
  margin: 0;
}

.legal-main {
  padding-top: 48px;
}

.legal-card {
  width: min(100%, 900px);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.55;
}

.legal-card h1 {
  margin: 0 0 25px;
  font-size: 42px;
  line-height: 0.95;
}

.legal-card h2 {
  margin: 29px 0 7px;
  font-size: 27px;
  line-height: 1;
}

.legal-card p {
  margin: 0 0 15px;
}

.document-status,
.legal-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff9e8;
  font-size: 15px;
}

.document-status {
  display: inline-block;
  margin-bottom: 17px !important;
}

@media (min-width: 900px) {
  .auth-login-page .auth-header {
    min-height: 315px;
    align-items: flex-end;
    padding-bottom: 30px;
  }
}

@media (max-width: 700px) {
  .auth-header {
    min-height: 76px;
    padding: 17px 16px;
  }

  .auth-brand {
    gap: 7px;
    font-size: 18px;
  }

  .auth-brand-name {
    font-size: 24px;
  }

  .auth-brand-dot {
    font-size: 18px;
  }

  .auth-photo {
    height: 72px;
  }

  .auth-main {
    min-height: calc(100vh - 148px);
    padding: 27px 16px 48px;
  }

  .auth-card h1 {
    gap: 9px;
    margin-bottom: 25px;
    font-size: 22px;
  }

  .auth-card h1 strong {
    font-size: 28px;
  }

  .form-field,
  .login-form .form-field {
    grid-template-columns: 1fr;
    gap: 7px;
    font-size: 21px;
  }

  .form-field input {
    height: 39px;
  }

  .form-fields + .form-fields {
    margin-top: 31px;
  }

  .auto-code-note,
  .consent-list {
    width: 100%;
    margin-left: 0;
  }

  .auto-code-note {
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .form-footer {
    justify-content: flex-start;
    margin-top: 25px;
  }

  .account-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-main {
    padding-top: 32px;
  }

  .legal-card {
    font-size: 16px;
  }

  .legal-card h1 {
    font-size: 36px;
  }
}
