/* ============================================
   FRENCH HARDWARE — SIGNUP PAGE
   Optimized for landscape iPad
   Matches frenchhardware.com visual design
   Brand: Plus Jakarta Sans, Almond Green palette
   ============================================ */

:root {
  --fh-black: #000000;
  --fh-white: #FFFFFF;
  --fh-almond: #9FAB8B;
  --fh-almond-dark: #8A9677;
  --fh-almond-light: #B5BFA6;
  --fh-sand: #DBBCA9;
  --fh-grey: #CECCCC;
  --fh-flag-blue: #2B4D9C;
  --fh-flag-red: #E52522;
  --font-family: 'Plus Jakarta Sans', -apple-system, 'system-ui', sans-serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--fh-sand);
  color: var(--fh-white);
  touch-action: manipulation;
}

/* ---- Screens ---- */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
}
.screen.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

/* ---- SIGNUP SCREEN ---- */
#signup-screen {
  background-color: var(--fh-sand);
  background-image: url('/assets/pattern-white.png');
  background-size: 280px;
  background-repeat: repeat;
  background-blend-mode: soft-light;
  background-position: center;
}

/* ---- Green Card (contains everything) ---- */
.signup-card {
  background: var(--fh-almond);
  border-radius: 2px;
  width: calc(100% - 80px);
  max-width: 820px;
  height: calc(100% - 48px);
  max-height: 800px;
  padding: 20px 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-y: auto;
}

/* ---- Tagline ---- */
.tagline {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--fh-white);
  margin-bottom: 0;
  text-align: center;
}

/* ---- Logo ---- */
.logo-container {
  margin-bottom: 0;
  line-height: 0;
}
.logo {
  height: 240px;
  width: auto;
  object-fit: contain;
  margin: -64px 0 -62px;
}

/* ---- Language Toggle (inside card) ---- */
.lang-toggle {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}
.lang-btn.active {
  color: var(--fh-white);
  border-bottom-color: var(--fh-white);
}
.lang-btn:hover {
  color: var(--fh-white);
}
.lang-divider {
  color: rgba(255,255,255,0.25);
  font-weight: 300;
  font-size: 16px;
  user-select: none;
}

/* ---- Headline (inside card) ---- */
.headline {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: var(--fh-white);
}

/* ---- Form ---- */
#signup-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}
.form-row.single {
  max-width: 50%;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.optional {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  text-transform: lowercase;
}

.form-group input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  color: var(--fh-white);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form-group input::placeholder {
  color: rgba(255,255,255,0.35);
}
.form-group input:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.18);
}
.form-group input.error {
  border-color: var(--fh-flag-red);
}

/* ---- Consent ---- */
.consent-container {
  margin: 14px 0 8px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkmark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 2px;
  margin-top: 1px;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.consent-label input:checked + .checkmark {
  background: var(--fh-white);
  border-color: var(--fh-white);
}
.consent-label input:checked + .checkmark::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 8px;
  border: solid var(--fh-almond);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkmark.error {
  border-color: var(--fh-flag-red);
}

/* ---- Legal Copy ---- */
.legal-copy {
  font-size: 9px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  max-height: 52px;
  overflow-y: auto;
}
.legal-copy a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
}

/* ---- Submit Button ---- */
.submit-btn {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding: 12px 28px;
  background: var(--fh-white);
  color: var(--fh-almond-dark);
  border: none;
  border-radius: 2px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.15s ease;
}
.submit-btn:hover {
  background: rgba(255,255,255,0.9);
}
.submit-btn:active {
  transform: scale(0.98);
}
.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Form Messages ---- */
.form-message {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  margin-top: 10px;
  min-height: 18px;
}
.form-message.error {
  color: #FFB4B4;
}
.form-message.success {
  color: var(--fh-white);
}

/* ---- Footer ---- */
.signup-footer {
  margin-top: 10px;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   CONFIRMATION SCREEN
   ============================================ */
#confirmation-screen {
  background-color: var(--fh-sand);
  background-image: url('/assets/pattern-white.png');
  background-size: 280px;
  background-repeat: repeat;
  background-blend-mode: soft-light;
  background-position: center;
}

.confirmation-container {
  text-align: center;
  background: var(--fh-almond);
  border-radius: 2px;
  padding: 48px 56px;
  max-width: 520px;
}

.confirmation-icon {
  width: 56px;
  height: 56px;
  border: 2px solid var(--fh-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 20px auto;
  color: var(--fh-white);
}

.confirmation-heading {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.confirmation-message {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 400px;
  color: rgba(255,255,255,0.85);
}

/* ============================================
   SLIDESHOW SCREEN
   ============================================ */
#slideshow-screen {
  background: var(--fh-black);
  cursor: pointer;
}

.slideshow-container {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.slide.active {
  opacity: 1;
}

.slideshow-touch-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}

/* ============================================
   RESPONSIVE — iPad Landscape Priority
   ============================================ */

/* iPad Pro 12.9" landscape */
@media (min-width: 1300px) and (max-height: 1100px) {
  .signup-card { padding: 24px 56px 20px; }
  .logo { height: 280px; margin: -74px 0 -70px; }
  .headline { font-size: 16px; }
}

/* iPad Air / 11" Pro landscape */
@media (min-width: 1100px) and (max-width: 1299px) and (max-height: 900px) {
  .signup-card { padding: 18px 48px 14px; }
  .logo { height: 260px; margin: -70px 0 -66px; }
}

/* Standard iPad landscape */
@media (min-width: 960px) and (max-width: 1099px) and (max-height: 800px) {
  .signup-card { padding: 16px 40px 12px; }
  .logo { height: 200px; margin: -52px 0 -50px; }
  .tagline { font-size: 11px; }
  .headline { font-size: 14px; margin-bottom: 14px; }
  .form-group input { padding: 9px 10px; font-size: 13px; }
  .submit-btn { padding: 10px 24px; }
}

/* iPad Mini landscape */
@media (max-width: 959px) and (orientation: landscape) {
  .signup-card { width: calc(100% - 32px); height: calc(100% - 32px); padding: 12px 28px 10px; }
  .logo { height: 170px; margin: -44px 0 -42px; }
  .tagline { font-size: 10px; letter-spacing: 3px; }
  .headline { font-size: 13px; margin-bottom: 12px; }
  .form-row { gap: 10px; margin-bottom: 10px; }
  .form-group input { padding: 8px 10px; font-size: 12px; }
  .form-group label { font-size: 9px; }
  .consent-container { margin: 8px 0 6px; }
  .consent-label { font-size: 10px; }
  .legal-copy { font-size: 8px; margin-bottom: 10px; max-height: 36px; }
  .submit-btn { padding: 9px 22px; font-size: 11px; }
}

/* Portrait fallback */
@media (orientation: portrait) {
  .signup-card {
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    padding: 20px 20px 16px;
  }
  .logo { height: 200px; margin: -52px 0 -50px; }
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  .form-row.single {
    max-width: 100%;
  }
  .lang-toggle {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* ---- Scrollbar (legal copy) ---- */
.legal-copy::-webkit-scrollbar {
  width: 3px;
}
.legal-copy::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

/* ---- reCAPTCHA badge hide (v3 invisible) ---- */
.grecaptcha-badge {
  visibility: hidden !important;
}
