:root {
  --blue: #003FA2;
  --blue-2: #0C62D9;
  --green: #8DBA38;
  --green-2: #C1E463;
  --bg: #ECF3FA;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.12);
  --ink: #182335;
  --muted: #627189;
  --line: rgba(108, 134, 176, 0.18);
  --shadow: 0 26px 72px rgba(14, 32, 60, 0.12);
  --shadow-strong: 0 40px 120px rgba(7, 33, 74, 0.24);
  --danger-bg: #FFF2EF;
  --danger-text: #9E2D1E;
  --success-bg: #EDF8DA;
  --success-text: #456916;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(141, 186, 56, 0.18), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(12, 98, 217, 0.16), transparent 22%),
    radial-gradient(circle at 88% 88%, rgba(0, 63, 162, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(236, 243, 250, 0.98)),
    var(--bg);
}

a {
  color: inherit;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-stage {
  width: min(440px, 100%);
}

.login-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
  box-shadow: var(--shadow);
}

.login-panel::before {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-panel::before {
  inset: -100px -20px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(12, 98, 217, 0.08), transparent 70%);
}

.logo {
  width: auto;
  height: 34px;
}

.panel-brand {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.panel-head {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

.panel-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.flash {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.flash-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.flash-error {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.login-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

.field input {
  min-height: 54px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(108, 134, 176, 0.24);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input:focus {
  border-color: rgba(12, 98, 217, 0.42);
  box-shadow: 0 0 0 4px rgba(12, 98, 217, 0.12);
  transform: translateY(-1px);
}

.submit-button {
  min-height: 56px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #18310D;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(141, 186, 56, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.panel-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0, 63, 162, 0.05);
  border: 1px solid rgba(0, 63, 162, 0.08);
}

.panel-note strong {
  display: block;
  color: var(--blue);
}

.panel-note p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

  .login-panel {
    padding: 24px 22px;
    border-radius: 24px;
  }
}
