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

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #0a0a12;
  --bg-card: #12121f;
  --bg-card-border: #1e1e35;
  --bg-input: #16162a;
  --bg-input-border: #252542;
  --fg: #e8e8f0;
  --fg-muted: #6b6b8a;
  --primary: #e87b35;
  --primary-hover: #f0923d;
  --discord: #5865F2;
  --discord-hover: #4752c4;
  --radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--fg);
  min-height: 100vh;
  overflow: hidden;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(24, 80%, 40%, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, hsla(260, 60%, 30%, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.void-logo {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.void-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(232, 123, 53, 0.3), 0 0 60px rgba(232, 123, 53, 0.1), inset 0 0 20px rgba(232, 123, 53, 0.1);
  animation: void-pulse 3s ease-in-out infinite;
}

.void-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(232, 123, 53, 0.15);
}

.void-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(232, 123, 53, 0.06);
}

.void-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, rgba(232, 123, 53, 0.4) 40%, transparent 70%);
  box-shadow: 0 0 20px rgba(232, 123, 53, 0.5);
  animation: void-core-glow 2s ease-in-out infinite alternate;
}

@keyframes void-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(232, 123, 53, 0.3), 0 0 60px rgba(232, 123, 53, 0.1), inset 0 0 20px rgba(232, 123, 53, 0.1); }
  50% { box-shadow: 0 0 40px rgba(232, 123, 53, 0.5), 0 0 80px rgba(232, 123, 53, 0.15), inset 0 0 30px rgba(232, 123, 53, 0.15); }
}

@keyframes void-core-glow {
  0% { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.void-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--fg);
  text-transform: uppercase;
}

.void-text span {
  color: var(--primary);
  font-weight: 300;
  letter-spacing: 4px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: var(--fg);
}

.login-subtitle {
  font-size: 14px;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 24px;
}

.discord-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--discord);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.discord-btn:hover {
  background: var(--discord-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--bg-input-border);
}
.divider-text {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  border-radius: 10px;
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 123, 53, 0.1);
}
.form-input::placeholder {
  color: var(--fg-muted);
  opacity: 0.6;
}

.password-wrap {
  position: relative;
}
.password-wrap .form-input {
  padding-right: 44px;
}
.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.eye-btn:hover {
  color: var(--fg);
}

.signin-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.signin-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 123, 53, 0.3);
}
.signin-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-muted);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

.login-feature svg {
  color: var(--primary);
  flex-shrink: 0;
  opacity: 0.7;
}

.terms {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.5;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--fg);
  z-index: 200;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .login-card { padding: 28px 20px; }
}
