/* ==========================================
   BODYGYM – login.css
   Login & Kayıt sayfasına özel stiller
   ========================================== */

/* ---- ANA DÜZEN ---- */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
}

/* ---- SOL PANEL – GÖRSEL ---- */
.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
}

.login-visual-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.login-visual-bg:hover { transform: scale(1.08); }

.login-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10,10,10,0.6) 50%,
    rgba(10,10,10,0.95) 100%
  );
}

.login-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.login-visual-content {
  position: relative;
  z-index: 2;
}

.login-brand {
  position: absolute;
  top: 40px;
  left: 60px;
  z-index: 2;
}

.login-brand-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #fff;
}

.login-brand-logo span { color: var(--primary); }

.login-visual-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 4vw, 60px);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.login-visual-quote span { color: var(--primary); }

.login-visual-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 36px;
}

.login-stats {
  display: flex;
  gap: 40px;
}

.login-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--primary);
  line-height: 1;
}

.login-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---- SAĞ PANEL – FORM ---- */
.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 72px;
  background: var(--dark-2);
  overflow-y: auto;
}

/* ---- TAB GEÇİŞİ ---- */
.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 6px;
  margin-bottom: 40px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
  border: none;
  background: transparent;
  letter-spacing: 0.02em;
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,0,0.4);
}

/* ---- FORM BAŞLIK ---- */
.form-heading {
  margin-bottom: 32px;
}

.form-heading h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.form-heading p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- FORM ALANLARI ---- */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input-wrap {
  position: relative;
}

.form-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
  transition: color 0.3s;
  z-index: 1;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  padding: 14px 16px 14px 46px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder { color: var(--text-subtle); }

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255,107,0,0.06);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

.form-input-wrap:focus-within .form-input-icon {
  color: var(--primary);
}

/* ---- ŞİFRE GÖSTER/GİZLE ---- */
.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.3s;
  z-index: 1;
}

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

/* ---- PLAN SEÇİCİ ---- */
.plan-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.plan-option { display: none; }

.plan-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.plan-option:checked + .plan-option-label {
  border-color: var(--primary);
  background: rgba(255,107,0,0.1);
  box-shadow: 0 0 0 2px rgba(255,107,0,0.2);
}

.plan-option-label span:first-child {
  font-size: 22px;
  margin-bottom: 6px;
}

.plan-option-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.plan-option-price {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

/* ---- CHECKBOX ---- */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  accent-color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-check-label a { color: var(--primary); text-decoration: underline; }

/* ---- ŞİFREMİ UNUTTUM ---- */
.form-forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -12px;
  margin-bottom: 20px;
}

.form-forgot a {
  font-size: 13px;
  color: var(--primary);
  text-decoration: underline;
}

/* ---- SUBMIT BUTON ---- */
.btn-auth {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---- AYIRICI ---- */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.divider-text {
  font-size: 13px;
  color: var(--text-subtle);
  font-weight: 500;
}

/* ---- DEMO BİLGİ KUTUSU ---- */
.demo-box {
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.demo-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-box-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.demo-box-row:last-child { border-bottom: none; }

.demo-box-key {
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 500;
}

.demo-box-val {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: monospace;
}

/* ---- ALERT / HATA ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.alert-error {
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255,60,60,0.25);
  color: #ff7070;
}

.alert-success {
  background: rgba(0, 220, 120, 0.1);
  border: 1px solid rgba(0,220,120,0.25);
  color: #4eff9a;
}

/* ---- İKİ KOLON FORM ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- PANEL GİZLEME ---- */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ---- RESPONSİVE ---- */
@media (max-width: 1024px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-panel { padding: 40px 32px; }
}

@media (max-width: 480px) {
  .login-form-panel { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .plan-select-grid { grid-template-columns: 1fr; }
}
