/* ===========================
   SYNTHEDGE — AUTH CSS
   =========================== */

.auth-body {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex; align-items: stretch;
}

.auth-layout {
  display: flex; width: 100%; min-height: 100vh;
}

/* LEFT PANEL */
.auth-left {
  flex: 1; background: var(--bg-section);
  border-right: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; top: -100px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.auth-logo { margin-bottom: 60px; }
.auth-left-content { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 440px; }
.auth-left-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.auth-left-content p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 40px; }

.auth-stats {
  display: flex; gap: 32px; margin-bottom: 40px;
}
.as-item { }
.as-num { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.as-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: block; }

.auth-testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.auth-testimonial p {
  font-size: 14px; color: var(--text-secondary);
  font-style: italic; line-height: 1.6; margin-bottom: 14px;
}
.at-author { display: flex; align-items: center; gap: 10px; }
.at-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-glow); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent);
}
.at-author strong { display: block; font-size: 13px; }
.at-author span { font-size: 11px; color: var(--text-muted); }

.auth-checklist { display: flex; flex-direction: column; gap: 12px; }
.auth-checklist li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.ck-icon { color: var(--green); font-weight: 700; flex-shrink: 0; }

/* RIGHT PANEL */
.auth-right {
  width: 480px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}

.auth-card {
  width: 100%; max-width: 400px;
}

.auth-card-header { margin-bottom: 28px; }
.auth-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; margin-bottom: 6px;
}
.auth-card-header p { color: var(--text-muted); font-size: 14px; }

/* FORM */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center;
}
.label-link { font-size: 11px; font-weight: 500; color: var(--accent); text-transform: none; letter-spacing: 0; transition: opacity 0.2s; }
.label-link:hover { opacity: 0.8; }
.label-optional { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }

.input-wrap {
  position: relative; display: flex; align-items: center;
}
.input-icon {
  position: absolute; left: 12px; color: var(--text-muted); pointer-events: none; flex-shrink: 0;
}
.auth-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 40px 10px 38px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}
.auth-input.error { border-color: var(--red); }
.auth-input.success { border-color: var(--green); }
.auth-select { cursor: pointer; }
.auth-select option { background: var(--bg-card); color: var(--text-primary); }

.pw-toggle {
  position: absolute; right: 12px; color: var(--text-muted);
  transition: color 0.2s; padding: 2px;
}
.pw-toggle:hover { color: var(--text-primary); }

/* PASSWORD STRENGTH */
.pw-strength { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pws-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pws-fill { height: 100%; width: 0%; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.pws-label { font-size: 11px; color: var(--text-muted); white-space: nowrap; min-width: 60px; text-align: right; }

/* FIELD ERROR */
.field-error { font-size: 11px; color: var(--red); min-height: 14px; }

/* FORM ROW */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* CHECKBOX */
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer; line-height: 1.4;
}
.checkbox-label input { display: none; }
.checkbox-custom {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; margin-top: 1px;
  border: 1.5px solid var(--border-light); background: var(--bg-card);
  transition: all 0.2s; position: relative;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent); border-color: var(--accent);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 5px; height: 9px; border: 2px solid #fff;
  border-top: none; border-left: none; transform: rotate(45deg);
}
.checkbox-label a { color: var(--accent); }

.form-row-check { margin-top: -4px; }

/* SUBMIT BUTTON */
.auth-submit { margin-top: 4px; padding: 12px 24px; font-size: 15px; justify-content: center; gap: 10px; }

/* SPINNER */
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* DIVIDER */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* OAUTH BUTTONS */
.oauth-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.oauth-btn:hover { border-color: var(--border-light); color: var(--text-primary); }

/* FOOTER LINKS */
.auth-footer-link {
  text-align: center; margin-top: 24px;
  font-size: 13px; color: var(--text-muted);
}
.auth-footer-link a { color: var(--accent); }

.auth-security-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--text-muted); margin-top: 16px;
}
.auth-security-note svg { color: var(--green); flex-shrink: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { width: 100%; }
}
@media (max-width: 480px) {
  .auth-right { padding: 24px 16px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .oauth-btns { grid-template-columns: 1fr; }
}
