:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #64748b;
  --line: #d8dee7;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --nav: #17324d;
  --accent: #0f766e;
  --focus: #f59e0b;
  --danger: #b42318;
  --shadow: 0 14px 35px rgba(30, 41, 59, 0.12);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  touch-action: pan-x pan-y;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-2);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), transparent 36%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.18), transparent 30%),
    #eef3f8;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  width: min(1080px, 100%);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 40px;
  min-height: 640px;
  padding: 34px;
  color: #f8fafc;
  background:
    linear-gradient(rgba(23, 50, 77, 0.84), rgba(16, 40, 62, 0.92)),
    var(--nav);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--nav);
  background: #f8fafc;
  font-weight: 800;
}

.brand-name {
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
}

.login-copy {
  margin-top: auto;
  margin-bottom: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.login-copy h1 {
  max-width: 560px;
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.12;
}

.login-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.login-language-bar {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(30, 41, 59, 0.08);
}

.login-language-select {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #111827;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  border-radius: 8px;
  background: #eef2f7;
}

.login-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.login-tab:hover {
  color: var(--ink);
}

.login-tab:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.35);
  outline-offset: 2px;
}

.login-tab.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.12);
}

.login-form {
  display: none;
}

.login-form.active {
  display: grid;
  gap: 14px;
}

.login-form h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.login-form input,
.login-form select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
  background: #ffffff;
}

.login-form input:focus,
.login-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.form-status {
  min-height: 20px;
  margin: -2px 0;
  color: var(--danger);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 750;
  text-decoration: none;
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
}

.btn-primary:hover {
  background: #0b625c;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.38);
  outline-offset: 2px;
}

.btn-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background: #f8fafc;
}

@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .login-body {
    padding: 0;
  }

  .login-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-hero,
  .login-panel {
    padding: 22px;
  }

  .login-copy h1 {
    font-size: 30px;
  }

  .login-status-grid {
    grid-template-columns: 1fr;
  }

  .login-language-bar {
    align-self: flex-end;
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
