/* Login Page Specific Styles */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0a0a14 0%, #0f0f1e 100%);
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
}

/* Animated Background */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -15%;
  left: -15%;
  animation-delay: 7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(50px, -50px) scale(1.1);
  }

  50% {
    transform: translate(-30px, 30px) scale(0.9);
  }

  75% {
    transform: translate(40px, 50px) scale(1.05);
  }
}

/* Login Container */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand Section */
.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.brand-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
  }

  50% {
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.6);
  }
}

.brand-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}

/* Login Card */
.login-card {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5), rgba(22, 22, 42, 0.45));
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #ec4899, transparent);
  opacity: 0.5;
}

/* Login Content */
.login-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.login-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Discord Login Button */
.btn-discord-login {
  padding: 14px 24px;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
  margin-top: 8px;
  text-decoration: none;
}

.btn-discord-login:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.6);
  background: linear-gradient(135deg, #6875f5, #5865F2);
  color: white;
  text-decoration: none;
}

.btn-discord-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-discord-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-discord-login i {
  font-size: 1.2rem;
}

.login-info {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-info i {
  color: #06b6d4;
  font-size: 0.9rem;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 24px;
  color: #64748b;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-footer i {
  color: #10b981;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-container {
    max-width: 100%;
  }

  .login-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .brand-icon {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }

  .brand-title {
    font-size: 1.6rem;
  }

  .btn-discord-login {
    padding: 16px 24px;
    font-size: 1rem;
  }

  .btn-discord-login i {
    font-size: 1.2rem;
  }
}

/* Loading Animation */
.fa-spinner,
.fa-discord.fa-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   Credential Login Form
   ============================================================ */

/* Error banner */
.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fca5a5;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
}

.login-error i {
  color: #ef4444;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Form layout */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* Input wrapper with icon */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 14px;
  color: #475569;
  font-size: 0.875rem;
  pointer-events: none;
  transition: color 0.2s;
}

.input-wrapper input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.925rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
  outline: none;
}

.input-wrapper input::placeholder {
  color: #334155;
}

.input-wrapper input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.06);
}

.input-wrapper input:focus+i,
.input-wrapper:focus-within i {
  color: #8b5cf6;
}

/* Credential login button */
.btn-credentials-login {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 0.975rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 4px;
}

.btn-credentials-login:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.3));
  border-color: rgba(139, 92, 246, 0.7);
  transform: translateY(-1px);
}

.btn-credentials-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-credentials-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}