body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #f8fafc;
  line-height: 1.6;
  padding: 0 20px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.auth-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 2rem;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
  font-weight: 800;
  font-size: 1.8rem;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

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

.auth-form input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.auth-form button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #f97316, #dc2626);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-form button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.auth-form p {
  text-align: center;
  margin-top: 1.5rem;
  color: #f1f5f9;
}

.auth-form a {
  color: #06b6d4;
  text-decoration: none;
  font-weight: 600;
}

.auth-form a:hover {
  color: #0891b2;
}

.error-message {
  color: #f87171;
  text-align: center;
  margin-top: 1rem;
  font-size: 14px;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  display: none;
}

.error-message:not(:empty) {
  display: block;
}

.verification-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-form h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #e2e8f0;
  font-weight: 700;
}

.verification-text {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #94a3b8;
  font-size: 14px;
}

.forgot-password {
  text-align: center;
  margin: 1rem 0;
}

.forgot-password a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  color: #06b6d4;
}

.reset-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reset-form h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #e2e8f0;
  font-weight: 700;
}

.reset-text {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #94a3b8;
  font-size: 14px;
}

.back-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #94a3b8 !important;
  margin-top: 0.5rem;
}

.back-btn:hover {
  border-color: #06b6d4 !important;
  color: #06b6d4 !important;
}

.password-requirements {
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.requirement {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
  font-size: 10px;
  transition: all 0.2s ease;
}

.requirement:last-child {
  margin-bottom: 0;
}

.requirement .check {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid #94a3b8;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  font-size: 8px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.requirement .text {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.requirement.valid .check {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #22c55e;
}

.requirement.valid .text {
  color: #e2e8f0;
}

.password-match {
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  background: #0f172a;
  padding: 0 1rem;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.compute-text {
    font-size: 0.5rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.2em;
    margin-top: 2px;
    text-transform: uppercase;
    text-align: center;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  padding: 20px;
  background: rgba(16, 16, 32, 0.8);
  backdrop-filter: blur(8px);
}