/* LOGIN PAGE STYLES */

.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 2rem;
}

.login-content {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.login-logo {
  width: 70px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(180, 22, 22, 0.3));
  opacity: 0;
}

.login-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
  opacity: 0;
}

.login-subtitle {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 2.5rem;
  opacity: 0;
}

/* TOGGLE BUTTONS */
.login-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
}

.toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #aaa;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn svg {
  width: 20px;
  height: 20px;
}

.toggle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.toggle-btn.active {
  background: linear-gradient(135deg, #b41616 0%, #d11a1a 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(180, 22, 22, 0.3);
}

/* LOGIN FORMS CONTAINER */
.login-forms {
  position: relative;
  min-height: 450px;
  overflow: hidden;
}

.login-form {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.login-form.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  position: relative;
  pointer-events: auto;
  transition-delay: 0.1s;
}

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.discord-gradient {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.1));
  color: #5865f2;
}

.staff-gradient {
  background: linear-gradient(135deg, rgba(180, 22, 22, 0.2), rgba(180, 22, 22, 0.1));
  color: #b41616;
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.form-description {
  color: #aaa;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* FORMS */
.oauth-form,
.staff-form {
  text-align: left;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #5865f2;
}

.checkbox-group label {
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group .link {
  color: #5865f2;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group .link:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #b41616;
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
  color: #666;
}

/* ERROR MESSAGE */
.error-message {
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: rgba(237, 66, 69, 0.1);
  border: 1px solid rgba(237, 66, 69, 0.3);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  color: #ed4245;
  font-size: 0.9rem;
}

.error-message.show {
  display: flex;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-message svg {
  flex-shrink: 0;
}

/* BUTTONS */
.login-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.login-btn:hover::before {
  width: 300px;
  height: 300px;
}

.login-btn svg {
  position: relative;
  z-index: 1;
}

.discord-btn {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
}

.discord-btn:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}

.discord-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.staff-btn {
  background: linear-gradient(135deg, #b41616 0%, #d11a1a 100%);
  color: #fff;
}

.staff-btn:hover {
  box-shadow: 0 8px 24px rgba(180, 22, 22, 0.4);
  transform: translateY(-2px);
}

.staff-btn:active {
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .login-container {
    padding: 5rem 1.5rem 2rem;
  }

  .login-title {
    font-size: 2rem;
  }

  .login-subtitle {
    font-size: 1rem;
  }

  .login-form {
    padding: 2rem 1.5rem;
  }

  .card-icon {
    width: 64px;
    height: 64px;
  }

  .card-icon svg {
    width: 36px;
    height: 36px;
  }

  .toggle-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .toggle-btn span {
    display: none;
  }
}