:root {
  --primary: #635bff;
  --primary-dark: #5148e5;
  --background: #f7f8fc;
  --surface: #ffffff;
  --text: #171923;
  --muted: #72778a;
  --border: #e8e9ef;
  --green: #20b486;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --radius: 16px;
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ==========================================
   AUTH CARD LAYOUT
========================================== */

.auth-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 10px 25px -5px rgba(23, 25, 35, 0.05),
              0 8px 10px -6px rgba(23, 25, 35, 0.01);
}

/* ==========================================
   BRAND & HEADER
========================================== */

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-header p {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================
   FORM INPUTS
========================================== */

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

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

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

.input-wrapper .field-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  border: 1px solid var(--border);
  background: #fafafd;
  border-radius: 10px;
  padding: 12px 40px 12px 38px;
  outline: none;
  color: var(--text);
  font-size: 13px;
  transition: all 0.2s ease;
}

.input-wrapper input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.08);
}

.input-wrapper input::placeholder {
  color: #a0a4b3;
}

/* ==========================================
   TOGGLE PASSWORD BUTTON
========================================== */

.toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

/* ==========================================
   TERMS CHECKBOX
========================================== */

.form-options {
  margin-bottom: 22px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fafafd;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
  position: relative;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.terms-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.terms-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.terms-text a:hover {
  text-decoration: underline;
}

/* ==========================================
   SUBMIT BUTTON
========================================== */

.submit-btn {
  width: 100%;
  border: none;
  padding: 13px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.2);
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 91, 255, 0.3);
}

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

/* ==========================================
   FOOTER LINK
========================================== */

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 3px;
}

.auth-footer a:hover {
  text-decoration: underline;
}

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