@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600&display=swap');

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --border: #e0e0e5;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #aeaeb2;
  --accent: #007aff;
  --accent-hover: #0066dd;
  --red: #ff3b30;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xl: 20px;

  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --font: 'DM Sans', -apple-system, sans-serif;
  --transition: 0.18s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

/* AUTH PAGE */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* BRAND */
.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  margin: 0 auto 14px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-3);
}

/* TABS */
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border-radius: 7px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-2);
}

.auth-tab.active {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  color: var(--text);
}

/* FORM */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
  display: block;
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.form-control:focus {
  border-color: var(--accent);
  outline: none;
}

.form-row {
  display: grid;
  gap: 12px;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

/* BUTTON */
.btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
}

/* UTIL */
.text-sm {
  font-size: 13px;
}

.text-muted {
  color: var(--text-3);
}

.mt-3 {
  margin-top: 12px;
}

.divider {
  border-top: 1px solid var(--border);
  margin: 14px 0;
}