@import url('tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xl);
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}

.auth-title {
  font-size: var(--font-xl);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.auth-subtitle {
  font-size: var(--font-sm);
  color: #64748b;
}

.auth-form-label {
  display: block;
  font-size: var(--font-xs);
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.auth-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: var(--font-sm);
  font-family: inherit;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  outline: none;
  transition: all .15s ease;
  margin-bottom: 15px;
}

.auth-input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-input::placeholder { color: #94a3b8; }

.auth-input-group { position: relative; }
.auth-input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: var(--font-md);
  pointer-events: none;
}
.auth-input-group .auth-input { padding-left: 40px; }

.auth-input-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: var(--font-md);
  padding: 0;
  transition: color .15s;
}
.auth-input-toggle:hover { color: #475569; }

.auth-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
  border: 1px solid #4338ca;
  border-radius: 10px;
  font-size: var(--font-sm);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.auth-btn:hover {
  transform: translateY(-1px);
  background: #4338ca;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

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

.auth-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: var(--font-xs);
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid #e2e8f0;
}

.auth-link { color: #4f46e5; text-decoration: none; font-weight: 700; }
.auth-link:hover { color: #4338ca; text-decoration: underline; }

.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: var(--font-xs);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-alert.error   { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }
.auth-alert.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.auth-alert.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.auth-logo-img { margin-bottom: 15px; }
.auth-logo-img img { max-height: 80px; border-radius: 8px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.auth-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #475569; font-size: var(--font-xs); font-weight: 600; }
.auth-checkbox { accent-color: #4f46e5; width: 15px; height: 15px; cursor: pointer; }
.auth-footer { text-align: center; margin-top: 24px; font-size: var(--font-xs); color: #64748b; }

@media (max-width: 768px) {
  .auth-input { font-size: var(--font-md); }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: 16px; }
}
