@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg-color: #030303;
  --card-bg: rgba(10, 10, 10, 0.6);
  --primary-color: #6366f1;
  --accent-primary: #00d2ff;
  --accent-secondary: #9d50bb;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.9);
  --error-color: #f43f5e;
  --success-color: #10b981;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(157, 80, 187, 0.1) 0%, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 420px;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 56px 48px;
  box-shadow: var(--glass-shadow);
  position: relative;
}

/* Subtle accent line */
.auth-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  /* LIGHTER WEIGHT */
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: #fff;
}

h2 {
  font-size: 0.9375rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.app-info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 10px 14px;
  margin-bottom: 32px;
  border-radius: 100px;
  /* Capsule look */
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

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

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.error-message {
  color: var(--error-color);
  font-size: 0.8125rem;
  margin-bottom: 24px;
  padding: 12px;
  background: rgba(244, 63, 94, 0.05);
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 10px;
  display: none;
  text-align: center;
}

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

.btn-primary {
  width: 100%;
  padding: 14px;
  background: #fff;
  /* White button for a very clean, high-contrast look */
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: #f1f1f1;
  transform: translateY(-1px);
}

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

.switch-link {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.switch-link a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s;
}

.switch-link a:hover {
  border-color: #fff;
}

/* Code/Secret appearance */
.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}