:root {
  color-scheme: light;
  --teal: #006f65;
  --deep-teal: #004f49;
  --gold: #c4a568;
  --ink: #172d29;
  --muted: #66746d;
  --cream: #f5f2e9;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: flex;
  flex-direction: column;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.72;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}

.page-header {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.company-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 650;
  color: var(--deep-teal);
}
.language-toggle {
  border: 1px solid #ccd4c9;
  border-radius: 999px;
  background: transparent;
  min-width: 84px;
  min-height: 44px;
  padding: 8px 17px;
  color: var(--deep-teal);
  font-size: 13px;
}
.language-toggle:hover {
  border-color: var(--teal);
  background: #edf0e7;
}

.login-layout {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
  margin: auto;
  padding: 28px 40px 46px;
}
.introduction {
  padding-block: 28px;
}
.intro-mark {
  height: 60px;
  display: flex;
  gap: 7px;
  align-items: end;
  margin-bottom: 35px;
}
.intro-mark span {
  display: block;
  width: 12px;
  background: var(--teal);
  border-radius: 9px 9px 2px 2px;
  transform: rotate(20deg);
}
.intro-mark span:nth-child(1) {
  height: 30px;
  opacity: 0.45;
}
.intro-mark span:nth-child(2) {
  height: 43px;
  opacity: 0.7;
}
.intro-mark span:nth-child(3) {
  height: 57px;
  background: var(--gold);
}
.eyebrow {
  color: #97763a;
  font-size: 11px;
  letter-spacing: 0.17em;
  font-weight: 650;
  margin: 0 0 20px;
}
.introduction h1 {
  color: var(--deep-teal);
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 440px;
  white-space: pre-line;
}
.intro-copy {
  color: #53685e;
  max-width: 330px;
  margin: 25px 0 0;
  font-size: 17px;
  line-height: 1.8;
}
.intro-rule {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin-top: 34px;
}
.intro-footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 300px;
  margin: 18px 0 0;
}

.login-card {
  min-width: 0;
  background: #fffefa;
  border: 1px solid #e4e6da;
  border-top: 3px solid var(--gold);
  border-radius: 24px;
  padding: 26px 36px 29px;
  box-shadow: 0 18px 60px #234e3f0d;
}
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.logo-wrap img {
  display: block;
  width: 184px;
  height: 92px;
  object-fit: contain;
  mix-blend-mode: multiply;
  max-width: 100%;
}
.form-heading {
  text-align: center;
  margin-bottom: 29px;
}
.form-heading h2 {
  font-size: 25px;
  letter-spacing: -0.025em;
  font-weight: 550;
  line-height: 1.3;
  margin: 0;
}
.form-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 10px 0 0;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
}
.field input {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 1px solid #cbd5cc;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 12px 14px;
  font-size: 16px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
.field input:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px #006f6510;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #62756a;
}
.password-toggle:hover {
  color: var(--teal);
  background: #f0f4ed;
}
.password-toggle[aria-pressed="true"] {
  color: var(--teal);
  background: #edf3eb;
}
.submit-button {
  width: 100%;
  min-height: 51px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  padding: 14px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transition: background 0.16s;
}
.submit-button:hover:not(:disabled) {
  background: var(--deep-teal);
}
.form-error {
  margin: 0 0 18px;
  border-inline-start: 3px solid #ba5341;
  border-radius: 4px;
  background: #fbefea;
  padding: 12px;
  color: #8c382c;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.form-status {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.form-status:not(:empty) {
  margin-top: 12px;
}
.return-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 26px auto 0;
  font-size: 12px;
  color: var(--teal);
}
.return-link:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.page-footer {
  padding: 0 24px 22px;
  text-align: center;
  font-size: 11px;
  color: #7c867d;
  line-height: 1.7;
}

[dir="rtl"] .company-link,
[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}
[dir="rtl"] .introduction h1 {
  letter-spacing: 0;
  font-size: clamp(40px, 4.5vw, 58px);
  line-height: 1.35;
}
[dir="rtl"] .form-heading h2 {
  letter-spacing: 0;
}
[dir="rtl"] .button-arrow,
[dir="rtl"] .return-link svg {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .page-header {
    padding: 18px 22px;
    gap: 12px;
  }
  .company-link {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .login-layout {
    display: block;
    max-width: 490px;
    padding: 8px 22px 32px;
  }
  .introduction {
    display: none;
  }
  .login-card {
    padding: 25px 28px 29px;
  }
  .page-footer {
    padding-bottom: 20px;
  }
}
@media (max-height: 500px) {
  .page-header { padding-block: 10px; }
  .login-layout { margin-block: 0; padding-block: 8px 24px; }
}
@media (max-width: 360px) {
  .page-header {
    padding-inline: 16px;
  }
  .company-link {
    max-width: 130px;
    line-height: 1.7;
  }
  .login-layout {
    padding-inline: 14px;
  }
  .login-card {
    padding-inline: 22px;
  }
  .form-heading h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
