/* Authentication Page Styles */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--body-bg-color);
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.auth-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(210, 255, 92, 0.2);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.auth-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(210, 255, 92, 0.1) 0%, transparent 70%);
  animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.auth-logo img {
  max-width: 150px;
  height: auto;
}

.auth-content {
  position: relative;
  z-index: 1;
}

.auth-title {
  font-family: var(--font-tactic-sans-exd-blk);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--brand-color);
  text-transform: uppercase;
}

.auth-subtitle {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 30px;
}

.auth-tab {
  flex: 1;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 25px;
  color: var(--text-color);
  font-family: var(--font-tactic-sans-exd-bld);
  font-size: 1rem;
  transition: var(--transition);
  text-transform: uppercase;
}

.auth-tab.active,
.auth-tab:hover {
  background: var(--brand-color);
  color: #000;
}

/* Forms */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--brand-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text-color);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--brand-color);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(210, 255, 92, 0.1);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Password Input */
.password-input {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);

  padding: 5px;
  transition: var(--transition);
}

.toggle-password:hover {
  color: var(--brand-color);
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;

  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-right: 8px;

  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--brand-color);
  border-color: var(--brand-color);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
  font-size: 12px;
}

.forgot-link {
  color: var(--brand-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Auth Button */
.auth-btn {
  width: 100%;
  padding: 18px;
  background: var(--brand-color);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: var(--font-tactic-sans-exd-blk);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;

  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(210, 255, 92, 0.3);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-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.5s;
}

.auth-btn:hover::before {
  left: 100%;
}

/* Divider */
.auth-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.auth-divider span {
  background: rgba(2, 4, 10, 0.9);
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* Social Auth */
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;

  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-btn:hover {
  border-color: var(--brand-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.steam:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: #171a21;
}

.social-btn.discord:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: #5865F2;
}

/* Form Info */
.form-info {
  text-align: center;
  margin-bottom: 25px;
  opacity: 0.8;
  line-height: 1.6;
}

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: 20px;
}

.form-footer a {
  color: var(--brand-color);
  font-size: 0.9rem;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.auth-footer p {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Auth Message */
.auth-message {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  display: none;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-message.success {
  background: rgba(210, 255, 92, 0.2);
  border: 1px solid var(--brand-color);
  color: var(--brand-color);
}

.auth-message.error {
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid #ff4444;
  color: #ff4444;
}

.auth-message.info {
  background: rgba(33, 150, 243, 0.2);
  border: 1px solid #2196f3;
  color: #2196f3;
}

/* Background Animation */
.auth-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hex-grid {
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 35px,
      rgba(210, 255, 92, 0.03) 35px,
      rgba(210, 255, 92, 0.03) 70px
    ),
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 35px,
      rgba(210, 255, 92, 0.03) 35px,
      rgba(210, 255, 92, 0.03) 70px
    ),
    repeating-linear-gradient(
      120deg,
      transparent,
      transparent 35px,
      rgba(210, 255, 92, 0.03) 35px,
      rgba(210, 255, 92, 0.03) 70px
    );
  animation: hexFloat 20s ease-in-out infinite;
}

@keyframes hexFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -20px) scale(1.1); }
}

/* Responsive */
@media screen and (max-width: 480px) {
  .auth-box {
    padding: 30px 20px;
  }

  .auth-title {
    font-size: 2rem;
  }

  .auth-subtitle {
    font-size: 1rem;
  }

  .form-options {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}