/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — login / register / forgot / reset password
   Paper / ink / brutalist design system
═══════════════════════════════════════════════════════════ */

/* ── Page wrapper ─────────────────────────────────────── */
.fcs-auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
}

/* ── Card ─────────────────────────────────────────────── */
.fcs-auth-card {
  width: 100%;
  max-width: 468px;
  background: var(--paper, #fafaf8);
  border: 1.5px solid #000;
  border-radius: 20px;
  box-shadow: 6px 6px 0 #000;
  padding: 44px 40px 36px;
  position: relative;
}

/* inner dashed decoration */
.fcs-auth-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(0,0,0,.12);
  border-radius: 15px;
  pointer-events: none;
}

/* ── Logo ─────────────────────────────────────────────── */
.fcs-auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

/* ── Emoji / icon ─────────────────────────────────────── */
.fcs-auth-emoji {
  text-align: center;
  font-size: 46px;
  line-height: 1;
  margin-bottom: 14px;
}

/* ── Title & subtitle ─────────────────────────────────── */
.fcs-auth-title {
  font-family: var(--display, 'Gloria Hallelujah', cursive);
  font-size: 26px;
  color: var(--ink, #1a1a1a);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.2;
}

.fcs-auth-sub {
  font-size: 15px;
  color: var(--ink-2, #555);
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ── Tab switcher ─────────────────────────────────────── */
.fcs-auth-tabs {
  display: flex;
  border: 1.5px solid #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 3px 3px 0 #000;
}

.fcs-auth-tab-btn {
  flex: 1;
  padding: 11px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink-2, #666);
  font-family: inherit;
  transition: background .15s, color .15s;
}

.fcs-auth-tab-btn:first-child {
  border-right: 1.5px solid #000;
}

.fcs-auth-tab-btn.active {
  background: var(--ink, #1a1a1a);
  color: var(--paper, #fafaf8);
}

/* ── Panel visibility ─────────────────────────────────── */
.fcs-auth-panel         { display: none; }
.fcs-auth-panel.active  { display: block; }

/* ── EDD form structural resets ───────────────────────── */
#edd_login_form,
#edd_register_form {
  margin: 0;
}

#edd_login_form fieldset,
#edd_register_form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

#edd_login_form legend,
#edd_register_form legend {
  display: none;
}

#edd_login_form p,
#edd_register_form p {
  margin: 0 0 18px;
}

/* ── Labels ───────────────────────────────────────────── */
#edd_login_form label,
#edd_register_form label,
.fcs-auth-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink, #1a1a1a);
  margin-bottom: 6px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-family: var(--mono, 'JetBrains Mono', monospace);
}

/* ── Text / password / email inputs ───────────────────── */
#edd_login_form input[type="text"],
#edd_login_form input[type="password"],
#edd_register_form input[type="text"],
#edd_register_form input[type="email"],
#edd_register_form input[type="password"],
.fcs-auth-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #000;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink, #1a1a1a);
  box-sizing: border-box;
  box-shadow: 2px 2px 0 rgba(0,0,0,.14);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: box-shadow .15s, border-color .15s;
}

#edd_login_form input[type="text"]:focus,
#edd_login_form input[type="password"]:focus,
#edd_register_form input[type="text"]:focus,
#edd_register_form input[type="email"]:focus,
#edd_register_form input[type="password"]:focus,
.fcs-auth-input:focus {
  box-shadow: 3px 3px 0 var(--accent, #0f74c5);
  border-color: var(--accent, #0f74c5);
}

/* ── Remember me row ─────────────────────────────────── */
.edd-login-remember { margin-bottom: 8px !important; }

.edd-login-remember label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  color: var(--ink-2, #666) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  font-family: inherit !important;
}

.edd-login-remember input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  border: 1.5px solid #000 !important;
  border-radius: 4px !important;
  cursor: pointer;
  accent-color: var(--accent, #0f74c5);
  box-shadow: none !important;
  padding: 0 !important;
  flex-shrink: 0;
}

/* ── Submit buttons ───────────────────────────────────── */
#edd_login_form .edd-submit,
#edd_register_form .edd-submit,
.fcs-auth-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--ink, #1a1a1a);
  color: var(--paper, #fafaf8) !important;
  border: 1.5px solid #000;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 3px 3px 0 #000;
  transition: transform .1s, box-shadow .1s;
  -webkit-appearance: none;
  appearance: none;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

#edd_login_form .edd-submit:hover,
#edd_register_form .edd-submit:hover,
.fcs-auth-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
  background: var(--ink, #1a1a1a);
  color: var(--paper, #fafaf8) !important;
}

#edd_login_form .edd-submit:active,
#edd_register_form .edd-submit:active,
.fcs-auth-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

/* ── EDD "Lost Password" link ─────────────────────────── */
.edd-lost-password {
  text-align: center;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

.edd-lost-password a {
  font-size: 13px;
  color: var(--accent, #0f74c5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.edd-lost-password a:hover {
  color: var(--ink, #1a1a1a);
}

/* ── EDD error list ────────────────────────────────────── */
.edd_errors {
  background: #fef2f2 !important;
  border: 1.5px solid #fca5a5 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #dc2626 !important;
  margin: 0 0 20px !important;
  list-style: none !important;
}

.edd_errors li {
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Alert blocks ─────────────────────────────────────── */
.fcs-auth-error {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #dc2626;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0 rgba(220,38,38,.1);
}

.fcs-auth-success {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #16a34a;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0 rgba(22,163,74,.1);
}

/* ── Custom form rows (forgot / reset) ─────────────────── */
.fcs-form-row {
  margin-bottom: 18px;
}

/* ── Footer links / back links ─────────────────────────── */
.fcs-auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-2, #666);
}

.fcs-auth-footer a {
  color: var(--accent, #0f74c5);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fcs-auth-footer a:hover { color: var(--ink, #1a1a1a); }

/* ── Tiny footnote ────────────────────────────────────── */
.fcs-auth-note {
  font-size: 12px;
  color: var(--ink-2, #888);
  text-align: center;
  margin: 14px 0 0;
  font-style: italic;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 520px) {
  .fcs-auth-card {
    padding: 32px 22px 28px;
    border-radius: 16px;
  }
  .fcs-auth-title { font-size: 22px; }
  .fcs-auth-emoji { font-size: 38px; }
}
