/* =========================================================
   FutureSense Subscriber Core — Frontend Styles
   Mobile-first, works standalone regardless of active theme.
   ========================================================= */

.fs-form-container,
.fs-box {
  max-width: 420px;
  margin: 40px auto;
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(17, 25, 46, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

.fs-box p {
  margin: 0 0 12px;
  color: #333;
}

/* Login form (wp_login_form output) + Register form share input styling */
.fs-form-container form p,
.fs-form-container p {
  margin-bottom: 16px;
}

.fs-form-container label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.fs-form-container input[type="text"],
.fs-form-container input[type="email"],
.fs-form-container input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fs-form-container input[type="text"]:focus,
.fs-form-container input[type="email"]:focus,
.fs-form-container input[type="password"]:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.fs-form-container label input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
  vertical-align: middle;
}

/* Buttons */
.fs-btn,
.fs-form-container input[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 13px 20px;
  background: #111;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  box-sizing: border-box;
}

.fs-btn:hover,
.fs-form-container input[type="submit"]:hover {
  background: #2a2a2a;
}

.fs-btn:active,
.fs-form-container input[type="submit"]:active {
  transform: scale(0.99);
}

/* Secondary text links under forms */
.fs-form-container > p:last-of-type,
.fs-box > p:last-of-type {
  text-align: center;
  font-size: 13.5px;
  color: #666;
  margin-top: 4px;
  margin-bottom: 0;
}

.fs-form-container a,
.fs-box a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 600;
}

.fs-form-container a:hover,
.fs-box a:hover {
  text-decoration: underline;
}

/* Inline status messages */
.fs-message {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.fs-message-error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.fs-message-success {
  background: #e9f9ee;
  color: #1a7f37;
  border: 1px solid #b7ebc6;
}

/* =========================================================
   Subscriber-only content gate (shown on restricted posts)
   ========================================================= */
.fs-restricted-gate {
  max-width: 640px;
  margin: 32px auto;
  padding: 32px 24px;
  background: #f7f7f8;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

.fs-restricted-gate .fs-lock-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.fs-restricted-gate h3 {
  margin: 0 0 10px;
  font-size: 19px;
  color: #111;
}

.fs-restricted-gate p {
  margin: 0 0 20px;
  color: #555;
  font-size: 14.5px;
  line-height: 1.5;
}

.fs-restricted-gate .fs-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.fs-restricted-gate .fs-gate-actions a {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  min-width: 140px;
  box-sizing: border-box;
}

.fs-restricted-gate .fs-btn-login {
  background: #111;
  color: #fff;
}
.fs-restricted-gate .fs-btn-login:hover {
  background: #2a2a2a;
}

.fs-restricted-gate .fs-btn-register {
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
}
.fs-restricted-gate .fs-btn-register:hover {
  background: #f0f0f0;
}

/* =========================================================
   Nav menu "Subscribe" / "Log Out" button
   ========================================================= */
.fs-nav-subscribe > a {
  background: #ff5722;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.fs-nav-subscribe > a:hover {
  background: #e64a19 !important;
}

.fs-nav-logout > a {
  font-weight: 600;
}

/* =========================================================
   Mobile responsiveness
   ========================================================= */
@media (max-width: 480px) {
  .fs-form-container,
  .fs-box,
  .fs-restricted-gate {
    margin: 20px 16px;
    padding: 24px 18px;
    border-radius: 10px;
  }

  .fs-restricted-gate .fs-gate-actions {
    flex-direction: column;
  }

  .fs-restricted-gate .fs-gate-actions a {
    width: 100%;
  }

  .fs-form-container input[type="text"],
  .fs-form-container input[type="email"],
  .fs-form-container input[type="password"] {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }
}
