/* ─────────────────────────────────────────────────
   signin.css — Farcross Sign In Page Styles
   Depends on: Google Fonts (Bebas Neue, Cormorant Garamond, DM Sans)
───────────────────────────────────────────────── */

/* ── Variables ────────────────────────────────── */
:root {
  --black:         #0a0a0a;
  --off-black:     #111111;
  --charcoal:      #1a1a1a;
  --mid:           #2a2a2a;
  --border:        #2e2e2e;
  --muted:         #5a5a5a;
  --silver:        #9a9a9a;
  --light:         #d4d0c8;
  --cream:         #f0ece3;
  --white:         #fafaf8;
  --gold:          #7C3AED;
  --gold-light:    #A78BFA;
  --gold-dim:      #4C1D95;
  --gold-alpha:    rgba(201, 168, 76, 0.08);
  --gold-border:   rgba(201, 168, 76, 0.1);

  --font-display:  'Bebas Neue', sans-serif;
  --font-serif:    'Cormorant Garamond', serif;
  --font-body:     'DM Sans', sans-serif;

  --transition:    0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--off-black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ── Custom Cursor ────────────────────────────── */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, opacity 0.3s;
}
.cursor.hover  { width: 16px; height: 16px; background: var(--gold-light); }
.cursor-ring.hover { width: 56px; height: 56px; opacity: 0.6; }

/* ── Page Layout ──────────────────────────────── */
.page {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ── Left Visual Panel ────────────────────────── */
.panel-visual {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
}

.panel-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1209 50%, #0a0a0a 100%);
  z-index: 0;
}

/* Geometric line overlay */
.geo-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.geo-lines svg {
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Brand mark top-left */
.brand-mark {
  position: absolute;
  top: 56px;
  left: 56px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--white);
}
.brand-mark-logo span { color: var(--gold); }

.brand-mark-line {
  width: 1px;
  height: 32px;
  background: var(--gold-dim);
}
.brand-mark-tag {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
}

/* Visual content — bottom-left */
.visual-content {
  position: relative;
  z-index: 5;
}

.visual-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.visual-tagline::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}

.visual-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 28px;
}
.visual-headline span { color: var(--gold); }

.visual-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--silver);
  letter-spacing: 0.04em;
  line-height: 1.8;
  max-width: 360px;
  border-left: 1px solid var(--gold-dim);
  padding-left: 20px;
}

/* ── Ornament Divider ─────────────────────────── */
.panel-ornament {
  width: 1px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold-dim) 30%,
    var(--gold-dim) 70%,
    transparent
  );
  position: relative;
}
.panel-ornament::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  background: var(--off-black);
}

/* ── Right Form Panel ─────────────────────────── */
.panel-form {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 56px 64px;
  background: var(--off-black);
  position: relative;
  overflow: hidden;
}

/* Corner accents */
.panel-form::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  border-top: 1px solid var(--gold-border);
  border-right: 1px solid var(--gold-border);
  pointer-events: none;
}
.panel-form::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-bottom: 1px solid var(--gold-border);
  border-left: 1px solid var(--gold-border);
  pointer-events: none;
}

/* ── Form Container ───────────────────────────── */
.form-container {
  width: 100%;
  max-width: 400px;
  animation: fadeUp 0.8s var(--transition) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Eyebrow label */
.form-eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
}

.form-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.1;
}

.form-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--silver);
  margin-bottom: 40px;
}
.form-subtitle a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color var(--transition);
}
.form-subtitle a:hover { border-color: var(--gold); }

/* ── Google Button ────────────────────────────── */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--light);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  transition: border-color var(--transition), color var(--transition);
}
.btn-google::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-alpha);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition);
}
.btn-google:hover {
  border-color: var(--gold-dim);
  color: var(--cream);
}
.btn-google:hover::before { transform: scaleX(1); }
.btn-google svg { flex-shrink: 0; position: relative; z-index: 1; }
.btn-google span { position: relative; z-index: 1; }

/* ── Divider ──────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Form Fields ──────────────────────────────── */
.field-group {
  margin-bottom: 20px;
  position: relative;
}

.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.field-group:focus-within .field-label { color: var(--gold); }

.field-input-wrap { position: relative; }

.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 32px 10px 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--cream);
  outline: none;
  caret-color: var(--gold);
  transition: border-color var(--transition);
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { border-color: var(--gold-dim); }
.field-input.invalid { border-color: #b04040; }

.field-error {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: #b04040;
  letter-spacing: 0.05em;
  margin-top: 5px;
  min-height: 16px;
}

/* Password toggle eye */
.field-eye {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 4px;
  transition: color var(--transition);
  line-height: 0;
}
.field-eye:hover { color: var(--gold); }

/* ── Remember / Forgot row ────────────────────── */
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  margin-top: -4px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkbox-input { display: none; }
.checkbox-custom {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  background: transparent;
  position: relative;
  flex-shrink: 0;
  transition: border-color var(--transition);
  margin-top: -20px;
}
.checkbox-input:checked + .checkbox-custom { border-color: var(--gold); }
.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--gold);
}
.checkbox-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--silver);
  margin-top: -20px;
}
.checkbox-label a{
    color: var(--gold);
}

.forgot-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.forgot-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* ── Submit Button ────────────────────────────── */
.btn-submit {
  position: relative;
  z-index: 0;
  width: 100%;
  padding: 16px 24px;
  background: var(--gold);
  border: none;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  overflow: hidden;
  transition: background var(--transition), transform 0.2s;
  margin-top: 10px;
  cursor: pointer;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gold-light);
  transform: translateX(-100%);
  transition: transform 0.5s var(--transition);
  pointer-events: none;
}
.btn-submit:hover { background: var(--gold-light); }
.btn-submit:hover::before { transform: translateX(0); }
.btn-submit:active { transform: scaleY(0.97); }
.btn-submit:disabled {
  opacity: 0.6;
  pointer-events: none;
}
.btn-submit span {
  position: relative;
  z-index: 1;
  display: inline-block;
}

/* ── Footer note ──────────────────────────────── */
.form-footer {
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}
.form-footer a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.form-footer a:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* Gold rule accent */
.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto 0;
  opacity: 0.4;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .panel-visual  { display: none; }
  .panel-ornament { display: none; }
  .panel-form {
    flex: 1;
    padding: 40px 32px;
  }
  .form-container { max-width: 100%; }
}

/* ─── PREVENT MOBILE ZOOM ON INPUT FOCUS ─── */
@media (max-width: 768px) {
  input, input[type="text"], input[type="email"],
  input[type="password"], input[type="search"],
  input[type="number"], input[type="tel"],
  textarea, select { font-size: 16px !important; }
}