/* ============================================================
   MotionCraft AI — Auth Styles
   ============================================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --bg-4: #1f1f1f;
  --border: #2a2a2a;
  --border-2: #333333;
  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.15);
  --text: #e8e8e8;
  --text-2: #999;
  --text-3: #555;
  --green: #22c55e;
  --red: #ef4444;
  --font: "Space Grotesk", sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Auth Wrapper ─────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at center top, rgba(249,115,22,0.03) 0%, transparent 60%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  animation: fadeUp .5s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Brand Header ─────────────────────────────────────────── */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.auth-brand svg {
  width: 32px;
  height: 32px;
}

.auth-brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-brand-text em {
  font-style: normal;
  color: var(--accent);
}

.auth-title {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
}

/* ── Form ─────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.form-error {
  font-size: 12px;
  color: var(--red);
  list-style: none;
}

.form-error li {
  margin-bottom: 2px;
}

.form-success {
  font-size: 13px;
  color: var(--green);
  text-align: center;
  padding: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 8px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  height: 44px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}

.btn-primary:hover {
  opacity: .9;
}

.btn-primary:active {
  transform: scale(.98);
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: color .2s;
}

.btn-link:hover {
  color: var(--accent);
}

/* ── Form footer ──────────────────────────────────────────── */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.form-footer a {
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
}

.form-footer a:hover {
  color: var(--accent);
}

/* ── Checkbox ─────────────────────────────────────────────── */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-group span {
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

/* ── Verify Email ─────────────────────────────────────────── */
.verify-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

.verify-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.verify-actions form {
  width: 100%;
}

/* ── Divider ──────────────────────────────────────────────── */
.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  position: relative;
  margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Google Login Button ──────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: rgba(255,255,255,0.15);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  background: rgba(249, 115, 22, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.google-login-btn:hover {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.25);
  transform: translateY(-1px);
}
.google-login-btn .btn-text {
  color: rgba(249, 115, 22, 0.85);
  font-weight: 600;
  font-size: 14px;
}
.google-icon-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ── Register link ────────────────────────────────────────── */
.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-2);
}

.register-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.register-link a:hover {
  text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-wrapper { padding: 16px; }
  .auth-card { padding: 28px 20px; }
}
