:root {
  color-scheme: light;
  --bg: #eef2f6;
  --bg-accent: #d9e4ef;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(34, 49, 63, 0.12);
  --text: #14202b;
  --muted: #5b6a78;
  --primary: #17324a;
  --primary-hover: #0f2232;
  --focus: #4c8cff;
  --shadow: 0 28px 80px rgba(15, 32, 48, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76, 140, 255, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(23, 50, 74, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 100%);
}

.shell {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 3rem);
}

.brand-panel,
.login-panel {
  display: flex;
  align-items: center;
}

.brand-panel {
  justify-content: center;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.brand-logo {
  width: min(240px, 72vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(15, 32, 48, 0.18));
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--muted);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 10ch;
  margin-bottom: 1rem;
}

.lead {
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--text);
}

.highlights li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--primary);
}

.login-panel {
  justify-content: center;
}

.card {
  width: min(100%, 470px);
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.mini-logo {
  width: 124px;
  height: auto;
}

.language-switcher {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  font-weight: 600;
  color: var(--muted);
}

.language-switcher span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.language-switcher select {
  min-width: 11.5rem;
  padding: 0.8rem 2.1rem 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 32, 43, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  outline: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5b6a78 50%),
    linear-gradient(135deg, #5b6a78 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) calc(50% + 1px),
    calc(100% - 0.7rem) calc(50% + 1px);
  background-size: 0.36rem 0.36rem, 0.36rem 0.36rem;
  background-repeat: no-repeat;
}

.language-switcher select:focus {
  border-color: rgba(76, 140, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(76, 140, 255, 0.16);
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .shell {
  direction: rtl;
}

html[dir="rtl"] .card-topbar,
html[dir="rtl"] .form-row {
  direction: rtl;
}

html[dir="rtl"] .language-switcher,
html[dir="rtl"] .card-topbar,
html[dir="rtl"] .form-row {
  text-align: right;
}

html[dir="rtl"] .language-switcher select {
  background-position:
    calc(1rem) calc(50% + 1px),
    calc(1.25rem) calc(50% + 1px);
  padding: 0.8rem 0.95rem 0.8rem 2.1rem;
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-kicker {
  margin-bottom: 0.35rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.card h2 {
  margin-bottom: 0.35rem;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.card-header p:last-child,
.footer-note {
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

label span {
  font-size: 0.92rem;
  color: var(--text);
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 43, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

input::placeholder {
  color: #8091a1;
}

input:focus {
  border-color: rgba(76, 140, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(76, 140, 255, 0.16);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--muted);
}

.checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.link:hover,
.link:focus-visible {
  text-decoration: underline;
}

.button {
  margin-top: 0.25rem;
  appearance: none;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #2b587d);
  color: white;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  box-shadow: 0 16px 30px rgba(23, 50, 74, 0.2);
}

.button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary-hover), #244763);
}

.button:focus-visible,
.link:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(76, 140, 255, 0.24);
  outline-offset: 2px;
}

.footer-note {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding-bottom: 0;
    text-align: center;
  }

  .highlights {
    justify-items: center;
  }

  .highlights li {
    max-width: 32rem;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 1rem;
    gap: 1rem;
  }

  .brand-panel {
    padding: 1rem 0.5rem 0;
  }

  .card {
    border-radius: 22px;
  }

  .card-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .language-switcher {
    justify-items: start;
    width: 100%;
  }

  .language-switcher select {
    width: 100%;
    min-width: 0;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
