@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600&display=swap');

:root {
  --bg: #1c1c1f;
  --sidebar: #333333;
  --primary: #6e6ce9;
  --secondary: #5e5ce6;
  --text: #f5f5fb;
  --muted: rgba(245, 245, 251, 0.7);
  --glass: rgba(26, 26, 36, 0.6);
  --glass-border: rgba(110, 108, 233, 0.35);
  --shadow: rgba(9, 9, 12, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(110, 108, 233, 0.2), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(94, 92, 230, 0.2), transparent 40%),
    linear-gradient(160deg, #14141a 0%, #1c1c1f 55%, #101015 100%);
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.7;
  mix-blend-mode: screen;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(110, 108, 233, 0.6), transparent 70%);
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.55), transparent 70%);
  bottom: -160px;
  right: 5%;
  animation-delay: -4s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(110, 108, 233, 0.45), transparent 70%);
  top: 55%;
  left: 60%;
  animation-delay: -7s;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login-panel {
  width: min(460px, 92vw);
  padding: 32px;
  border-radius: 26px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 60px var(--shadow);
  backdrop-filter: blur(24px);
}

.panel-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.logo {
  width: 54px;
  height: 54px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(110, 108, 233, 0.2);
  border: 1px solid rgba(110, 108, 233, 0.4);
  box-shadow: 0 10px 25px rgba(110, 108, 233, 0.35);
  filter: brightness(0) saturate(100%) invert(47%) sepia(49%) saturate(2218%) hue-rotate(216deg) brightness(98%) contrast(97%);
}

.panel-header h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #14141a;
  box-shadow: 0 18px 32px rgba(110, 108, 233, 0.4);
}

.btn.discord {
  background: rgba(51, 51, 51, 0.75);
  color: var(--text);
  border: 1px solid rgba(110, 108, 233, 0.35);
  margin-bottom: 12px;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-label img {
  width: 18px;
  height: 18px;
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-icon {
  font-size: 18px;
}

.hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.divider {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(110, 108, 233, 0.3);
  background: rgba(10, 10, 14, 0.6);
  color: var(--text);
  font-size: 15px;
  backdrop-filter: blur(12px);
}

input:focus {
  outline: 2px solid rgba(110, 108, 233, 0.6);
  border-color: transparent;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 12px;
}

.panel-footer a {
  color: var(--muted);
  text-decoration: none;
}

.panel-footer a:hover {
  color: var(--text);
}

.error-panel {
  text-align: left;
}

.error-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -30px, 0) scale(1.05);
  }
}

@media (max-width: 540px) {
  .login-panel {
    padding: 24px;
  }

  .panel-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
