* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--page-bg, #eef0f3);
}
.login-card {
  background: #fff;
  width: 400px;
  max-width: 92vw;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 28px 28px 24px;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -28px -28px 22px;
  min-height: 56px;
  background: transparent;
}
.brand-image {
  display: block;
  width: 100%;
  height: auto;
}
.logo { width: 54px; height: auto; object-fit: contain; margin: 12px 0 12px 16px; }
.title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  white-space: pre-line;
  color: var(--title-color, #1f3fa0);
  padding: 12px 16px 12px 0;
}
.brand.has-text-title { background: transparent; margin: 0 0 22px; }
.field {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 14px;
  border: 1px solid #c9ced6;
  border-radius: 7px;
  font-size: 15px;
  outline: none;
}
.field:focus { border-color: var(--accent, #1f3fa0); }
#password { background: #eef3ff; }
.login-btn {
  background: var(--accent, #1f3fa0);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 15px;
  cursor: pointer;
}
.login-btn:hover { filter: brightness(1.08); }
.forgot-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent, #1f3fa0);
  text-decoration: none;
  font-size: 14px;
}
.forgot-link:hover { text-decoration: underline; }
.footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  font-size: 13px;
}
.lang { color: var(--accent, #1f3fa0); cursor: pointer; }
.divider { color: #c9ced6; }
.cookie-btn {
  background: #e4e6ea;
  padding: 6px 12px;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
}

.site-caption {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: #8a909a;
  line-height: 1.5;
}
.site-caption #site-name { display: block; font-weight: 600; color: #6b7280; }
.site-caption #site-url  { display: block; color: #9aa0aa; }

.login-error {
  color: #c0392b;
  font-size: 14px;
  margin-top: 6px;
  min-height: 18px;
}
