@import url("/styles/bridges.css");

.login-scene {
  display: grid;
  place-items: center;
  padding: 24px 24px calc(24px + var(--site-footer-height));
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 36px 34px 32px;
  border-radius: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(232, 200, 106, 0.55), rgba(255, 255, 255, 0.15) 40%, rgba(201, 162, 39, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.login-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(26, 35, 50, 0.12);
}

.login-brand h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.login-tagline {
  margin: 0 0 28px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}

.login-flash {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.18);
  color: #991b1b;
  font-size: 0.9rem;
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #1a2332 0%, #2d3a4f 55%, #1a2332 100%);
  box-shadow: 0 10px 24px rgba(26, 35, 50, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(26, 35, 50, 0.26);
}

.login-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(74, 85, 104, 0.75);
}
