:root {
  --bg-oled: #050508;
  --glass-card: rgba(10, 10, 16, 0.78);
  --text-main: #ffffff;
  --text-muted: #9aa0b4;
}

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

html, body {
  background-color: var(--bg-oled);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.page-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.card-wrapper {
  width: 100%;
  max-width: 440px;
}

/* Glass Card with Dual Color Aura Glow */
.glass-portal {
  position: relative;
  width: 100%;
  background: var(--glass-card);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 28px;
  padding: 42px 34px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.9),
    -15px 0 45px rgba(220, 130, 140, 0.18),
    15px 0 45px rgba(90, 160, 240, 0.18);
}

/* Gradient Border using cross-browser background-clip */
.glass-portal {
  background: 
    linear-gradient(var(--glass-card), var(--glass-card)) padding-box,
    linear-gradient(135deg, rgba(235, 140, 150, 0.7), rgba(160, 130, 200, 0.3) 50%, rgba(100, 190, 240, 0.7)) border-box;
  border: 1.5px solid transparent;
}

.portal-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo-wrapper {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.sub-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Input Fields */
.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.space-input {
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 0 42px 0 46px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.space-input::placeholder {
  color: var(--text-muted);
}

.space-input:focus {
  border-color: rgba(200, 180, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(180, 160, 240, 0.25);
}

.space-input:focus ~ .input-icon {
  color: #ffffff;
}

/* Eye Toggle Button */
.eye-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.eye-toggle:hover {
  opacity: 1;
}

.eye-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* Primary Glow Pill Button */
.primary-btn {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #e2e4f0 100%);
  border: none;
  color: #08080d;
  margin-top: 14px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.55);
  background: #ffffff;
}

/* Google Button */
.social-btn {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.google-icon {
  width: 18px;
  height: 18px;
}

.portal-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
}

.portal-divider::before, .portal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-divider span {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 12px;
}

.legal-notice {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  line-height: 1.4;
}

.legal-notice a {
  color: #ffffff;
  text-decoration: underline;
}

.portal-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}
