@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Orbitron:wght@500;700&display=swap');

:root {
  --primary-color: #6200ee;
  --primary-hover: #3700b3;
  --secondary-color: #03dac6;
  --background-dark: #121212;
  --card-background: #1e1e1e;
  --input-background: #2a2a2a;
  --input-border: #444;
  --error-color: #cf6679;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-hint: #aaaaaa;
  --shadow-color: rgba(0, 0, 0, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background-image: radial-gradient(circle at 10% 20%, rgba(98, 0, 238, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
}

.auth-container {
  background-color: var(--card-background);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 15px 35px var(--shadow-color), 
              0 5px 15px rgba(0, 0, 0, 0.05),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
  max-width: 480px;
  width: 95%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: fadeIn 1s ease-out;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(98, 0, 238, 0.06) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  z-index: -1;
  animation: gradientMove 15s linear infinite;
}

.logo-container {
  margin-bottom: 30px;
}

.logo {
  max-width: 120px;
  filter: drop-shadow(0 4px 8px rgba(98, 0, 238, 0.6));
}

.app-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 15px 0 5px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(98, 0, 238, 0.6);
}

.app-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.auth-card {
  background-color: rgba(40, 40, 40, 0.7);
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.lock-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(98, 0, 238, 0.4);
}

.lock-icon i {
  font-size: 24px;
  color: white;
}

.auth-header h1 {
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0;
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 20px;
  background-color: rgba(207, 102, 121, 0.1);
  border-left: 4px solid var(--error-color);
  border-radius: 4px;
}

.error-container i {
  color: var(--error-color);
  margin-right: 10px;
}

.error {
  color: var(--error-color);
  font-size: 0.9rem;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
  cursor: pointer;
  z-index: 2;
}

.password-toggle:hover {
  color: var(--text-primary);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background-color: var(--input-background);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  height: 55px;
}

input[type="password"] {
  padding-right: 45px;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(98, 0, 238, 0.2);
  outline: none;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: var(--text-hint);
}

.login-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  height: 55px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(98, 0, 238, 0.3);
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(98, 0, 238, 0.4);
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(98, 0, 238, 0.3);
}

.login-btn i {
  transition: transform 0.3s ease;
}

.login-btn:hover i {
  transform: translateX(5px);
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  gap: 8px;
}

.security-badge i {
  color: var(--secondary-color);
}

.system-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
  filter: blur(8px);
  animation: float 15s infinite linear;
  opacity: 0.2;
}

.particle-1 {
  width: 300px;
  height: 300px;
  left: 10%;
  top: 20%;
  animation-duration: 25s;
}

.particle-2 {
  width: 200px;
  height: 200px;
  right: 15%;
  bottom: 10%;
  animation-duration: 20s;
  animation-delay: 5s;
}

.particle-3 {
  width: 150px;
  height: 150px;
  left: 50%;
  top: 70%;
  animation-duration: 30s;
  animation-delay: 2s;
}

.particle-4 {
  width: 250px;
  height: 250px;
  right: 30%;
  top: 15%;
  animation-duration: 22s;
  animation-delay: 7s;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zoom-in {
  animation: zoomIn 1.2s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(3, 218, 198, 0.7);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(3, 218, 198, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(3, 218, 198, 0);
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10%, 5%) rotate(90deg);
  }
  50% {
    transform: translate(5%, 10%) rotate(180deg);
  }
  75% {
    transform: translate(-5%, 5%) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

@keyframes gradientMove {
  0% {
    transform: rotate(45deg) translateY(0);
  }
  100% {
    transform: rotate(45deg) translateY(100%);
  }
}

/* Responsive adjustments */
@media (max-width: 500px) {
  .auth-container {
    padding: 25px 20px;
    width: 90%;
  }
  
  .auth-card {
    padding: 20px 15px;
  }
  
  .app-title {
    font-size: 1.7rem;
  }
  
  .lock-icon {
    width: 50px;
    height: 50px;
  }
  
  .auth-header h1 {
    font-size: 1.5rem;
  }
}