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

:root {
  --crimson: #450E1D;
  --crimson-mid: #5c1226;
  --crimson-bright: #8b1a35;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
}

/* ── Background ── */
.bg {
  position: fixed;
  inset: 0;
  background: #060103;
  z-index: 0;
}

.vest-bg {
  position: fixed;
  inset: 0;
  background-image: url('spirit_new3.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 45% 55% at 50% 48%, rgba(75,12,26,0.45) 0%, rgba(6,1,3,0.2) 55%, transparent 80%);
  z-index: 2;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ── Layout ── */
main {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: 6vh;
}

/* ── Card ── */
.card {
  width: 100%;
  max-width: 420px;
  background: rgba(9, 5, 7, 0.93);
  border: 1px solid rgba(130, 22, 48, 0.75);
  border-radius: 18px;
  padding: 36px 32px 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.015) inset,
    0 0 60px rgba(69,14,29,0.4),
    0 24px 80px rgba(0,0,0,0.95);
}

/* ── Brand ── */
.brand {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
  filter:
    brightness(0) invert(1)
    sepia(1) hue-rotate(300deg) saturate(3) brightness(0.82)
    drop-shadow(0 0 6px rgba(180,30,55,0.8))
    drop-shadow(0 0 18px rgba(140,20,45,0.55));
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 8px;
  text-indent: 8px;
  color: #fff;
  margin-bottom: 14px;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.diamond {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--crimson-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(139,26,53,0.9);
}

/* ── Form ── */
form { display: flex; flex-direction: column; gap: 14px; }

/* ── Field groups ── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ── Input row ── */
.field {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus-within {
  border-color: rgba(139,26,53,0.8);
  box-shadow: 0 0 0 3px rgba(69,14,29,0.18);
}

.field-icon {
  color: rgba(255,255,255,0.22);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 10px;
  transition: color 0.2s;
}

.field:focus-within .field-icon {
  color: rgba(139,26,53,0.7);
}

.field input {
  flex: 1;
  padding: 13px 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.field input::placeholder { color: rgba(255,255,255,0.22); }

/* ── Eye toggle ── */
.eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  padding: 0 0 0 8px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.eye-btn:hover { color: rgba(255,255,255,0.45); }

/* ── Button ── */
.login-btn {
  margin-top: 4px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, #7a1630 0%, #450E1D 100%);
  border: 1px solid rgba(139,26,53,0.5);
  border-top-color: rgba(170,35,65,0.7);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-indent: 2px;
  cursor: pointer;
  transition: filter 0.25s, box-shadow 0.25s, transform 0.1s;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.login-btn:hover {
  filter: brightness(1.18);
  box-shadow: 0 0 28px rgba(139,26,53,0.55), 0 6px 18px rgba(0,0,0,0.5);
}

.login-btn:active { transform: scale(0.99); }
.login-btn:disabled { opacity: 0.35; cursor: not-allowed; filter: none; }

/* ── Error ── */
.error {
  font-size: 12px;
  color: rgba(248,113,113,0.9);
  min-height: 16px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .card { padding: 28px 20px 24px; }
  h1 { font-size: 24px; letter-spacing: 10px; text-indent: 10px; }
}
