:root {
  --navy: #1C2B5E;
  --navy-mid: #2E4080;
  --gold: #B8963E;
  --gold-light: #D4AF6A;
  --gold-pale: #F5EDD8;
  --cream: #F7F4EF;
  --white: #FDFCFA;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--navy);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(184,150,62,0.18) 0%, transparent 65%);
  z-index: 0;
}

body::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(184,150,62,0.03) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: 0;
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 0 32px;
  text-align: center;
}

.login-logo {
  display: block;
  margin: 0 auto;
  height: 48px;
  object-fit: contain;
}

.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 40px auto 0;
}

.login-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 32px;
  user-select: none;
}

.login-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: white;
  margin-top: 16px;
  user-select: none;
}

.login-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-top: 20px;
}

.login-form {
  margin-top: 36px;
}

.login-input {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  padding: 12px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: white;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--gold);
}

.login-input::placeholder {
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}

.login-input::-webkit-input-placeholder { color: rgba(255,255,255,0.25); }
.login-input::-moz-placeholder { color: rgba(255,255,255,0.25); }
.login-input:-ms-input-placeholder { color: rgba(255,255,255,0.25); }

.login-input:focus {
  border-bottom-color: var(--gold);
  box-shadow: 0 2px 8px rgba(184,150,62,0.15);
}

.login-input.error {
  border-bottom-color: #C75050;
}

.login-input.error:focus {
  box-shadow: 0 2px 8px rgba(199,80,80,0.15);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: white;
  -webkit-box-shadow: 0 0 0px 1000px var(--navy) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.login-error {
  font-size: 12px;
  color: #C75050;
  margin-top: 12px;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.3s, height 0.3s;
}

.login-error.visible {
  opacity: 1;
  height: 16px;
}

.login-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 24px auto 0;
  background: var(--gold);
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.login-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
  background: #A88435;
}

.login-btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.login-footer {
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.06em;
  margin-top: 48px;
  user-select: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(5px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  90% { transform: translateX(1px); }
}

.shake { animation: shake 0.4s ease; }

@media (max-width: 480px) {
  .login-wrapper { padding: 0 24px; }
  .login-heading { font-size: 32px; }
  .login-logo { height: 40px; }
  .gold-rule { margin-top: 32px; }
  .login-footer { margin-top: 36px; }
}
