@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
  --deep-red: #8B0000;
  --charcoal: #0b0b0b;
  --ink: #161616;
  --soft-gold: #d8c8b5;
  --muted: #9c9c9c;
  --border: rgba(255, 255, 255, 0.08);
  --focus: rgba(139, 0, 0, 0.7);
}

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

body {
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, rgba(139, 0, 0, 0.35), transparent 45%), #030303;
  color: #f5f5f5;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
}

.page-shell:before,
.page-shell:after {
  content: '';
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.35), transparent 65%);
  filter: blur(12px);
  z-index: 0;
}

.page-shell:before {
  top: -240px;
  left: -120px;
}

.page-shell:after {
  bottom: -260px;
  right: -80px;
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px 42px 40px;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  text-align: center;
  margin-bottom: 32px;
}

.brand-lockup img {
  width: 300px;
  height: auto;
  display: inline-block;
  margin-bottom: 18px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hidden {
  display: none !important;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  color: #d7d7d7;
}

.form-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
  outline: none;
  border-color: var(--deep-red);
  box-shadow: 0 0 0 3px var(--focus);
}

.error-text {
  font-size: 0.82rem;
  color: #ff6b6b;
  margin-top: 6px;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}

.error-text.visible {
  opacity: 1;
}

button[type="submit"] {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--deep-red), #5c0000);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.aux-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.aux-row a,
.aux-row .link-button {
  font-size: 0.9rem;
  color: var(--soft-gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.aux-row a:hover,
.aux-row .link-button:hover {
  border-color: var(--soft-gold);
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.status-banner {
  display: none;
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid rgba(139, 0, 0, 0.4);
  color: #ffd6d6;
  font-size: 0.9rem;
  line-height: 1.4;
}
.status-banner.visible {
  display: block;
}
.status-banner:not(.error) {
  background: rgba(62, 94, 59, 0.3);
  border-color: rgba(143, 210, 132, 0.45);
  color: #eaf8e5;
}
.status-banner.error {
  background: rgba(139, 0, 0, 0.25);
  border-color: rgba(255, 0, 0, 0.35);
  color: #ffd6d6;
}

@media (max-width: 520px) {
  .auth-panel {
    padding: 36px 28px;
  }

  button[type="submit"] {
    letter-spacing: 0.05em;
  }
}
