:root {
  /* Premium White Palette */
  --bg-page: #F8FAFC;       /* Soft Slate */
  --bg-card: #FFFFFF;       /* Pure White */
  --bg-input: #F1F5F9;      /* Light Gray */
  
  --text-main: #0F172A;     /* Deep Navy */
  --text-muted: #64748B;    /* Slate Gray */
  --primary: #4F46E5;       /* Indigo */
  --primary-dark: #4338CA;
  
  --border: #E2E8F0;
  --radius: 16px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body.auth-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin: 16px;
  border: 1px solid var(--border);
}

/* Header */
.auth-header { text-align: center; margin-bottom: 24px; }
.logo-box {
  width: 48px; height: 48px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), #818CF8);
  color: white; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.auth-header h1 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.5px; }
.auth-header p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Tabs */
.auth-tabs {
  display: flex; background: var(--bg-input);
  padding: 4px; border-radius: 12px; margin-bottom: 24px;
}
.tab {
  flex: 1; border: none; background: none;
  padding: 10px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
}
.tab.active { background: white; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Inputs */
.input-group { margin-bottom: 16px; text-align: left; }
.input-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-main); margin-bottom: 6px;
}
.input-group small { font-size: 10px; color: var(--text-muted); display: block; margin-top: 4px; }

.input-group input {
  width: 100%; padding: 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 12px; font-size: 14px; color: var(--text-main);
  outline: none; transition: 0.2s;
}
.input-group input:focus {
  border-color: var(--primary); background: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Password Eye */
.password-wrapper { position: relative; }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
}

/* Buttons */
.btn-primary {
  width: 100%; padding: 14px;
  background: var(--primary); color: white;
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  margin-top: 8px; transition: transform 0.1s;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.btn-primary:active { transform: scale(0.98); background: var(--primary-dark); }

.hidden { display: none; }

/* Toast */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #1E293B; color: white; padding: 10px 20px;
  border-radius: 30px; font-size: 12px; font-weight: 500;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}