/* ============================================
   TURFBOOK - Auth Pages
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--gradient-hero);
}

.auth-bg .turf-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 60px,
    transparent 60px,
    transparent 120px
  );
}

.auth-bg .hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Container & Card ── */

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

/* ── Header ── */

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-header h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.auth-header p {
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Form ── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.3px;
}

/* ── Input with icon ── */

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
  flex-shrink: 0;
}

.input-icon-wrap input {
  width: 100%;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  color: #111827;
  padding: 11px 14px 11px 40px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.input-icon-wrap input:focus {
  border-color: var(--green-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.input-icon-wrap input::placeholder {
  color: #9ca3af;
}

/* password toggle button */
.input-with-toggle input {
  padding-right: 44px;
}

.toggle-pass {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: color 0.18s;
}

.toggle-pass:hover { color: var(--green-primary); }

.toggle-pass svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* ── Name row ── */

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ── Remember me / Forgot row ── */

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #374151;
  font-weight: 500;
}

.remember-me input[type="checkbox"] {
  accent-color: var(--green-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.forgot-link {
  font-size: 0.82rem;
  color: var(--green-primary);
  font-weight: 600;
  transition: opacity 0.18s;
}

.forgot-link:hover { opacity: 0.75; }

/* ── Terms checkbox ── */

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

.terms-check input[type="checkbox"] {
  accent-color: var(--green-primary);
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.terms-check span {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.5;
}

.terms-check a {
  color: var(--green-primary);
  font-weight: 600;
}

/* ── Submit button ── */

.btn-auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(46,125,50,0.3);
  margin-top: 2px;
}

.btn-auth-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46,125,50,0.4);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

/* ── Divider ── */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #9ca3af;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ── Social buttons ── */

.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.social-login-btn {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  color: #374151;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-login-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-login-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-1px);
}

/* ── Auth switch ── */

.auth-switch {
  text-align: center;
  color: #6b7280;
  font-size: 0.84rem;
  margin-top: 2px;
}

.auth-switch a {
  color: var(--green-primary);
  font-weight: 600;
  transition: opacity 0.18s;
}

.auth-switch a:hover { opacity: 0.8; }

/* ── Responsive ── */

@media (max-width: 520px) {
  .auth-page { padding: 80px 0 0; align-items: flex-end; }

  .auth-container {
    max-width: 100%;
    width: 100%;
  }

  .auth-card {
    padding: 1.8rem 1.3rem 2rem;
    border-radius: 24px 24px 0 0;
    min-height: 70vh;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  }

  .form-row-2 { grid-template-columns: 1fr; gap: 0.75rem; }

  .auth-header { margin-bottom: 1.4rem; }
  .auth-header h1 { font-size: 1.6rem; }
  .auth-header p { font-size: 0.84rem; }

  .auth-form { gap: 0.85rem; }

  .btn-auth-submit { padding: 14px; font-size: 1.02rem; }

  .social-auth { gap: 0.6rem; }
  .social-login-btn { padding: 10px 10px; font-size: 0.82rem; }
}
