*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #4a0010;
  --accent-dark: #2d0009;
  --accent-soft: rgba(255, 255, 255, 0.12);

  --bg-base: #4a0010;
  --bg-panel-a: #3a000c;
  --bg-panel-b: #2a0008;
  --glass-bg: rgba(0, 0, 0, 0.28);
  --glass-border: rgba(255, 255, 255, 0.22);
  --input-bg: rgba(0, 0, 0, 0.28);
  --input-border: rgba(255, 255, 255, 0.22);
  --input-border-focus: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.15);

  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.7);

  --radius-shell: 28px;
  --radius-input: 10px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo,
    Consolas, monospace;
}

html,
body {
  height: 100%;
  font-family: var(--font-sans);
  color: var(--text);
  background: #4a0010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 1040px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-shell);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 92% 100%, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(165deg, var(--bg-panel-a), var(--bg-panel-b) 75%);
}

.brand-panel::after {
  content: "\f274";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -34px;
  bottom: -46px;
  font-size: 260px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  z-index: -1;
  pointer-events: none;
}

.icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
}

.icon-ring i {
  font-size: 30px;
  color: #4a0010;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-name span {
  color: #ffffff;
}

.brand-headline {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.4px;
  margin-top: 26px;
  max-width: 17ch;
  color: #ffffff;
}

.brand-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-top: 14px;
  max-width: 36ch;
}

.brand-features {
  list-style: none;
  margin-top: 32px;
}

.brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
}

.brand-features li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-features i {
  width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #ffffff;
  font-size: 13px;
}

.feat-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 7px;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-footnote {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 32px;
}

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  background: rgba(0, 0, 0, 0.15);
}

.form-panel-inner {
  width: 100%;
  max-width: 360px;
}

.form-header {
  margin-bottom: 28px;
}

.form-header h2 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.form-header p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

.alert-error {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.fg {
  margin-bottom: 18px;
}

.fl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.fl i {
  font-size: 10px;
  color: #ffffff;
}

.iw {
  position: relative;
}

.iw input {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-input);
  padding: 13px 44px 13px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.iw input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.iw input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: color 0.15s;
}

.eye-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.rem-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.ck {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ck input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.ck-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.15s, border-color 0.15s;
}

.ck input:checked ~ .ck-box {
  background: #ffffff;
  border-color: #ffffff;
}

.ck-box i {
  font-size: 9px;
  color: #4a0010;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.12s, transform 0.12s;
}

.ck input:checked ~ .ck-box i {
  opacity: 1;
  transform: scale(1);
}

.rem-lbl {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.rem-lbl:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* ✅ Login button — white bg + burgundy text (matches other pages' primary buttons) */
.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-input);
  background: #ffffff;
  color: #4a0010;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
}

.fbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 440px;
    min-height: auto;
  }

  .brand-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 32px 32px 26px;
  }

  .brand-panel::after {
    display: none;
  }

  .icon-ring {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .icon-ring i {
    font-size: 20px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-desc,
  .brand-features {
    display: none;
  }

  .brand-headline {
    font-size: 19px;
    margin-top: 6px;
    max-width: none;
  }

  .form-panel {
    padding: 32px 28px 40px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .auth-shell {
    border-radius: 20px;
  }
}