:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #0078d4;
  --primary-600: #0e6eb8;
  --primary-700: #0b5c99;
  --accent: #00b7c3;
  --border: #e5e7eb;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.06);
  --radius: 10px;
}

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

body {
  font-family:
    Segoe UI,
    Roboto,
    Arial,
    system-ui,
    -apple-system,
    sans-serif;
  background: image-set("/static/img/clouds.jpg");
  background-size: cover;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Bar */
.navbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  opacity: 0.9;
}

.navbar-content {
  max-width: 1200px;
  /* margin: 0 auto; */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  opacity: 0.9;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  background-color: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-body {
  padding: 32px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-toggle {
  display: flex;
  margin-bottom: 32px;
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.toggle-btn.active {
  background-color: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 20px;
  height: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  background-color: #f3f4f6;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition:
    width 0.3s,
    background-color 0.3s;
}

.password-strength-text {
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--muted);
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.form-check input {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-check label {
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.tos-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.tos-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-600);
}

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

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

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

.notification {
  position: fixed;
  top: 100px;
  right: 0px;
  padding: 16px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 1000;
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--success);
}

.notification.error {
  border-left: 4px solid var(--danger);
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Error Panel */
.error-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-bottom: 20px;
}

.error-icon {
  width: 24px;
  height: 24px;
  fill: var(--danger);
  flex-shrink: 0;
}

.error-content {
  flex: 1;
}

.error-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--danger);
  margin-bottom: 4px;
}

.error-message {
  font-size: 0.9rem;
  color: #991b1b;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .auth-container {
    max-width: 100%;
  }

  .auth-body {
    padding: 24px;
  }
}
