/* ============================================================
   LinkPage — Auth Page CSS
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--color-bg-primary);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.4s ease;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 32px;
  justify-content: center;
}
.auth-logo-icon {
  width: 40px; height: 40px;
  background: var(--color-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px var(--color-accent-glow);
}
.auth-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.auth-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-title {
  font-size: 1.625rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Password strength bar */
.password-strength {
  margin-top: 8px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-bg-elevated);
  overflow: hidden;
}
.password-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0;
}
.strength-1 { background: var(--color-danger);  width: 25%; }
.strength-2 { background: var(--color-warning); width: 50%; }
.strength-3 { background: #F59E0B;              width: 75%; }
.strength-4 { background: var(--color-success); width: 100%; }
.password-strength-text {
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--color-text-muted);
  height: 16px;
}

/* Username availability indicator */
.username-check-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  transition: var(--transition);
}
.check-avail  { color: var(--color-success); }
.check-taken  { color: var(--color-danger); }
.check-loading{ color: var(--color-text-muted); animation: spin 0.8s linear infinite; }

.form-group { position: relative; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.auth-footer a { font-weight: 600; }

@media (max-width: 480px) {
  .auth-card    { padding: 28px 20px; }
  .auth-container { max-width: 100%; }
  .input-group-text { max-width: 130px; }
}

/* Glassmorphic Auth Cards */
.auth-card {
  background: rgba(22, 22, 26, 0.45) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4) !important;
  border-radius: var(--radius-xl) !important;
}
.auth-page {
  background-color: #08080a !important;
  background-image: 
    linear-gradient(rgba(124, 58, 237, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.02) 1px, transparent 1px) !important;
  background-size: 50px 50px !important;
}

/* ============================================================
   RESPONSIVE — AUTH PAGES
   ============================================================ */
@media (max-width: 600px) {
  .auth-container { max-width: 100%; }
  .auth-card { padding: 28px 20px; border-radius: var(--radius-lg) !important; }
  .auth-title { font-size: 1.4rem; }
  .auth-page { padding: 80px 16px 24px; align-items: flex-start; }
}

@media (max-width: 360px) {
  .auth-card { padding: 22px 14px; }
  .auth-title { font-size: 1.2rem; }
  .auth-subtitle { font-size: 0.875rem; }
  .btn { font-size: 0.875rem; padding: 10px 16px; }
}
