


:root {
  
  --bg-primary: #0a0e27;
  --bg-secondary: #1a1d3a;
  --bg-tertiary: #252842;
  --bg-card: rgba(26, 29, 58, 0.8);
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(132, 204, 22, 0.5);
  
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  
  --accent-primary: #84cc16;
  --accent-secondary: #65a30d;
  --accent-success: #10b981;
  --accent-error: #ef4444;
  --accent-warning: #f59e0b;
  
  
  --gradient-main: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  --gradient-accent: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(132, 204, 22, 0.4);
  
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}


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

body {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

canvas {
  display: block;
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  padding: 2rem 0;
}

.modal.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.login-container {
  background: linear-gradient(
    135deg,
    rgba(13, 27, 18, 0.98) 0%,
    rgba(26, 46, 31, 0.95) 100%
  );
  border: 1px solid rgba(132, 204, 22, 0.2);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(132, 204, 22, 0.15),
    0 0 40px rgba(132, 204, 22, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(132, 204, 22, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
  opacity: 0.8;
}

.login-input-group {
  margin-bottom: 1.5rem;
}

.login-input-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.login-input-wrapper {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: none;
}

.login-input-wrapper:focus-within {
  border: none;
  background: transparent;
  box-shadow: none;
}

.login-input-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(13, 27, 18, 0.5);
  border: 1.5px solid rgba(132, 204, 22, 0.15);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  font-weight: 400;
  line-height: 1.5;
}

.login-input-group input:focus {
  outline: none;
  color: #ffffff;
  border-color: rgba(132, 204, 22, 0.6);
  background: rgba(13, 27, 18, 0.7);
  box-shadow: 
    0 0 0 2px rgba(132, 204, 22, 0.15),
    0 2px 8px rgba(132, 204, 22, 0.1);
}

.login-input-group input:-webkit-autofill,
.login-input-group input:-webkit-autofill:hover,
.login-input-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(13, 27, 18, 0.7) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.login-input-group input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.5;
  font-weight: 400;
}

.login-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  border: none;
  border-radius: 12px;
  color: #0d1b12;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 2rem;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  letter-spacing: 0.5px;
  box-shadow: 
    0 4px 16px rgba(132, 204, 22, 0.3),
    0 0 0 1px rgba(132, 204, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 24px rgba(132, 204, 22, 0.4),
    0 0 0 1px rgba(132, 204, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 12px rgba(132, 204, 22, 0.3),
    0 0 0 1px rgba(132, 204, 22, 0.2);
}


.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}

.login-btn .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #0d1b12;
  flex-shrink: 0;
}

.login-btn span {
  display: inline-block;
  line-height: 1;
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  color: var(--accent-error);
  text-align: center;
  font-size: 0.875rem;
  display: none;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

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


#mainApp.hidden {
  display: none;
}


.maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-overlay.hidden {
  display: none;
}

.maintenance-content {
  text-align: center;
  color: var(--text-primary);
  padding: var(--spacing-xl);
  max-width: 500px;
}

.maintenance-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.maintenance-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.maintenance-message {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.maintenance-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.maintenance-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-primary);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.icon-spin-animation {
  animation: spin 1s linear infinite;
}


.notification-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
  max-width: 360px;
}

.notification {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  animation: slideInNotification 0.3s ease-out;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 300px;
}

.notification-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.notification-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.notification-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  opacity: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification:hover .notification-close {
  opacity: 1;
}

.notification-close:hover {
  color: var(--accent-error);
  background: rgba(239, 68, 68, 0.1);
}

.notification-success {
  border-left: 4px solid var(--accent-success);
}

.notification-success .notification-icon {
  color: var(--accent-success);
}

.notification-error {
  border-left: 4px solid var(--accent-error);
}

.notification-error .notification-icon {
  color: var(--accent-error);
}

.notification-warning {
  border-left: 4px solid var(--accent-warning);
}

.notification-warning .notification-icon {
  color: var(--accent-warning);
}

.notification-info {
  border-left: 4px solid var(--accent-primary);
}

.notification-info .notification-icon {
  color: var(--accent-primary);
}

.notification-twitch {
  border-left: 4px solid #9147ff;
}

.notification-twitch .notification-icon {
  color: #9147ff;
}

@keyframes slideInNotification {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutNotification {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.notification-removing {
  animation: slideOutNotification 0.3s ease-in forwards;
}
