/* /unitedtags/css/auth.css - Login & Register Pages */
:root {
  /* Brand Colors - Metallic Beige/Tan/Bronze from logo */
  --primary: #b39474;
  --primary-light: #d4bfa1;
  --primary-dark: #8b6f50;
  --primary-darker: #6d5840;
  --primary-bronze: #a67c52;
  --primary-glow: rgba(179, 148, 116, 0.2);
  --primary-gradient: linear-gradient(135deg, #b39474 0%, #d4bfa1 50%, #8b6f50 100%);
  --metallic-gradient: linear-gradient(135deg, #d4bfa1 0%, #b39474 35%, #8b6f50 65%, #a67c52 100%);

  /* Dark Theme */
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-board: #111111;
  --bg-elevated: #161616;
  --bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #0d0d0d 100%);
  --border: rgba(179, 148, 116, 0.12);
  --border-hover: rgba(179, 148, 116, 0.35);

  /* Text */
  --text-light: #f5f5f5;
  --text-muted: #666666;

  /* Accents */
  --success: #22c55e;
  --error: #ff6b6b;

  /* Premium Additions */
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --hover-shadow: 0 12px 40px var(--primary-glow);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Legacy aliases for compatibility */
  --gold: #b39474;
  --gold-light: #d4bfa1;
  --gold-glow: rgba(179, 148, 116, 0.3);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-gradient);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 40px;
}

/* Auth Container */
.auth-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
@media (min-width: 600px) { .auth-container { max-width: 560px; } }
@media (min-width: 820px) { .auth-container { max-width: 620px; } }
@media (min-width: 1024px) { .auth-container { max-width: 660px; } }

/* Premium Card */
.premium-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--metallic-gradient);
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-auth {
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f5f5f5 0%, #b39474 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.logo-auth::before {
  display: none;
}

.logo-dot {
  display: none;
}

.auth-header h1 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #9a7a58 0%, #c8a870 50%, #9a7a58 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { background-position: 0% center; }
  to   { background-position: 100% center; }
}

.auth-subtitle {
  color: #b8b8b8;
  font-size: 16px;
  max-width: 400px;
  margin: 0 auto;
}

/* Alerts */
.premium-alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  animation: fadeInUp 0.3s ease;
}

.premium-alert.error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: #ffb8b8;
}

.premium-alert.success {
  background: rgba(71, 209, 138, 0.1);
  border: 1px solid rgba(71, 209, 138, 0.2);
  color: #b8ffd9;
}

.premium-alert i {
  font-size: 18px;
  flex-shrink: 0;
}

/* Plan Preview */
.plan-preview {
  background: rgba(179, 148, 116, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.plan-preview h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card {
  background: var(--bg-dark);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.plan-card.selected {
  border-color: var(--primary);
  background: rgba(179, 148, 116, 0.05);
}

.plan-card h4 {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.small-note {
  font-size: 13px;
  color: #b8b8b8;
  margin-top: 12px;
  text-align: center;
}

/* Form Styles */
.premium-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.premium-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #b8b8b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.premium-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 15px;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.premium-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.premium-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.password-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-primary {
  background: var(--metallic-gradient);
  color: #000;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(179, 148, 116, 0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(179, 148, 116, 0.3);
  margin-top: 12px;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(179, 148, 116, 0.1);
}

.btn-large {
  padding: 16px;
  font-size: 16px;
  border-radius: 100px;
}

.btn-full {
  width: 100%;
}

/* Terms & Footer */
.terms-agreement {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.terms-agreement .small {
  font-size: 13px;
  color: var(--text-muted);
}

.terms-agreement a {
  color: var(--primary);
  text-decoration: none;
}

.terms-agreement a:hover {
  text-decoration: underline;
}

.auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #b8b8b8;
}

.auth-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Demo Section */
.demo-toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.demo-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--primary);
  font-weight: 500;
}

.demo-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

.demo-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.demo-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  transition: .4s;
  border-radius: 34px;
}

.demo-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
}

.demo-toggle input:checked + .demo-toggle-slider {
  background-color: rgba(179, 148, 116, 0.2);
  border-color: var(--primary);
}

.demo-toggle input:checked + .demo-toggle-slider:before {
  transform: translateX(24px);
  background-color: var(--primary);
}

.demo-credentials {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.demo-credential {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.demo-credential:last-child {
  margin-bottom: 0;
}

.credential-label {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.credential-value {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 14px;
  margin: 0 12px;
  flex: 1;
  text-align: center;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: rgba(179, 148, 116, 0.1);
}

.auto-fill-btn {
  width: 100%;
  padding: 12px;
  background: rgba(179, 148, 116, 0.1);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auto-fill-btn:hover {
  background: rgba(179, 148, 116, 0.15);
  transform: translateY(-2px);
}

.demo-disabled {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}

.demo-disabled i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.enable-demo-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.enable-demo-btn:hover {
  background: rgba(179, 148, 116, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 0;
    align-items: flex-start;
  }

  .auth-container {
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  .premium-card {
    padding: 40px 24px 30px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-header h1 {
    font-size: 28px;
  }
  
  .premium-input {
    padding: 12px 16px;
  }
  
  .demo-credential {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .credential-value {
    text-align: left;
    width: 100%;
    margin: 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}