/* ============================================
   ULTRA-MODERN AUTH - OBSIDIAN MOBILE-FIRST
   ============================================ */

:root {
  --auth-bg: #000000;
  --auth-card-bg: #09090b;
  --auth-accent: #ffffff;
  --auth-border: rgba(255, 255, 255, 0.1);
  --auth-input-bg: rgba(255, 255, 255, 0.03);
  --auth-text-muted: #8e8e93;
}

.modern-auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--auth-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Background Effects */
.modern-auth-body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: 0;
  pointer-events: none;
}

.modern-auth-layout {
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  z-index: 10;
  animation: authAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hide marketing section for clean, focused auth */
.modern-auth-story-section {
  display: none !important;
}

.modern-auth-form-section {
  width: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: none !important;
}

.auth-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}

.auth-headings {
  text-align: center;
  margin-bottom: 3rem;
}

.auth-headings h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-headings .muted {
  font-size: 1.1rem;
  color: var(--auth-text-muted);
  font-weight: 500;
}

/* Modern Form */
.modern-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0.1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  height: 54px;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.25s var(--ease-fluid);
  -webkit-appearance: none;
}

.input-wrapper input {
  padding-right: 3.5rem; /* Space for toggle */
}

/* Precision Password Toggle */
.password-toggle {
  position: absolute;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.password-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.password-toggle .material-symbols-rounded {
  font-size: 1.25rem;
}

.input-wrapper input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.input-icon {
  display: none; /* Removed icons for ultra-clean look */
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--auth-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--auth-border);
  background: transparent;
  cursor: pointer;
  appearance: none;
  position: relative;
  transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
  background: #fff;
  border-color: #fff;
}

.remember-me input[type="checkbox"]:checked::after {
  content: 'check';
  font-family: 'Material Symbols Rounded';
  font-size: 14px;
  color: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
}

.forgot-password {
  color: var(--auth-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #fff;
}

/* Button */
.btn-primary {
  width: 100%;
  height: 54px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-fluid);
  margin-top: 1.5rem;
}

.btn-primary:hover {
  background: #e5e5ea;
  transform: scale(1.01) translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
  transform: scale(0.98);
}

.auth-footer {
  margin-top: 3.5rem;
  text-align: center;
}

.auth-switch {
  color: var(--auth-text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.auth-switch a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.auth-switch a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.status-text {
  min-height: 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* VS Code Extension Flow Banner */
.flow-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  text-align: left;
  backdrop-filter: blur(10px);
}

.flow-banner strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.flow-banner p {
  font-size: 0.85rem;
  color: var(--auth-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Input focus enhancement */
.input-wrapper.focused {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.03);
}

/* Referral UI */
.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.referral-hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.65rem;
  padding-left: 0.1rem;
}

/* Responsive Scaling */
@media (max-width: 480px) {
  .modern-auth-layout {
    padding: 1.5rem;
  }
  
  .auth-headings h1 {
    font-size: 2.25rem;
  }
  
  .auth-brand {
    margin-bottom: 2.5rem;
  }
  
  .form-row-group {
    grid-template-columns: 1fr;
  }
  
  .input-wrapper input {
    padding: 1rem;
  }
}
