:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --line: #d9e3ee;
  --text: #17324d;
  --muted: #657786;
  --primary: #0b6ea8;
  --primary-dark: #084f78;
  --shadow: 0 20px 45px rgba(23, 50, 77, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 110, 168, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbfe 0%, var(--bg) 100%);
}

.page-shell {
  min-height: 100vh;
  padding: 28px;
}

.topbar-simple {
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
}

.brand-logo-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-image {
  width: 220px;
  max-width: 100%;
  height: auto;
}

main {
  display: flex;
  justify-content: center;
}

.panel {
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid rgba(217, 227, 238, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 32px;
}

.stack {
  display: grid;
  gap: 18px;
}

.control-group {
  display: grid;
  gap: 8px;
}

label {
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(11, 110, 168, 0.6);
  box-shadow: 0 0 0 4px rgba(11, 110, 168, 0.14);
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.button-secondary {
  background: #edf4fa;
  color: var(--text);
}

.result-box {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.result-box[data-state="error"] {
  background: #fff1f1;
  color: #a12424;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .login-panel {
    padding: 22px;
  }

  .password-row {
    grid-template-columns: 1fr;
  }
}
