:root {
  --bg-color: #0a0a0a;
  --card-bg: #141414;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --border: #262626;
  --border-hover: #404040;
  --accent-glow: rgba(249, 115, 22, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Background shapes */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-glow);
  top: -200px;
  right: -200px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-glow);
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  top: 40%;
  left: 30%;
}

/* Card Component */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Logo Component */
.logo {
  width: 64px;
  height: 64px;
  background-color: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Typography */
.main-title {
  font-size: 48px;
  font-weight: 700;
}

.title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Button Components */
.btn {
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Google Button */
.btn-google {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.btn-google:hover {
  border-color: var(--border-hover);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

/* Divider */
.divider {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 24px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border);
  z-index: 0;
}

.divider span {
  background-color: var(--card-bg);
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
  color: var(--text-primary);
}

.auth-status {
  opacity: 0.5;
  padding-bottom: 16px;
}

/* Offline Page Elements */
.offline-icon-container {
  width: 80px;
  height: 80px;
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.05);
}

.offline-icon {
  font-size: 40px;
  width: 40px;
  height: 40px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Loading state for buttons */
.btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.loading .spinner {
  display: block;
}

.btn.loading .btn-text,
.btn.loading svg,
.btn.loading .material-symbols-rounded {
  display: none;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #141414;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* 404 Page Elements */
.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}