/* ===== World of Warcraft Theme — AegisManager ===== */

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

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #0a0a0f;
}

/* ===== Animated WoW Background ===== */
.wow-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 60, 114, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(101, 67, 33, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(163, 113, 38, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0d0d14 0%, #14141e 40%, #1a1a2e 100%);
}

.wow-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 215, 0, 0.015) 2px,
      rgba(255, 215, 0, 0.015) 4px
    );
  pointer-events: none;
}

.wow-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(200, 150, 50, 0.02) 0%, transparent 40%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ===== Login Container ===== */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.login-frame {
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 18, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 40px 36px 36px;
  position: relative;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 215, 0, 0.08),
    0 0 80px rgba(101, 67, 33, 0.1);
}

.login-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), transparent 40%, transparent 60%, rgba(255, 215, 0, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== Logo Area ===== */
.logo-area {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  font-size: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.2)); }
  100% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5)); }
}

.logo-area h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #f6d365, #fda085, #f6d365);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease-in-out infinite;
  letter-spacing: 2px;
}

@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle {
  color: rgba(255, 215, 0, 0.5);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 300;
}

/* ===== Forms ===== */
.auth-form {
  transition: opacity 0.3s ease;
}

.auth-form.hidden {
  display: none;
}

.form-title {
  color: #c8b88a;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* ===== Input Groups ===== */
.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  color: #a09070;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 8px;
  color: #e0d5c0;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.25s ease;
}

.input-group input::placeholder {
  color: rgba(160, 144, 112, 0.4);
}

.input-group input:focus {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.06), inset 0 0 20px rgba(255, 215, 0, 0.02);
}

/* ===== WoW Button ===== */
.wow-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: linear-gradient(135deg, #8b6914, #c9a84c, #8b6914);
  background-size: 200% 200%;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  color: #1a1a0a;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wow-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: btnShine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnShine {
  0% { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}

.wow-btn:hover {
  background-position: 100% 100%;
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 215, 0, 0.05);
  transform: translateY(-1px);
}

.wow-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* ===== Switch Text ===== */
.switch-text {
  text-align: center;
  color: rgba(160, 144, 112, 0.6);
  font-size: 13px;
  margin-top: 20px;
}

.switch-text a {
  color: #c9a84c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.switch-text a:hover {
  color: #f6d365;
  text-decoration: underline;
}

/* ===== Messages ===== */
.error-msg,
.success-msg {
  text-align: center;
  font-size: 13px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
}

.error-msg {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.success-msg {
  color: #51cf66;
  background: rgba(81, 207, 102, 0.08);
  border: 1px solid rgba(81, 207, 102, 0.2);
}

.hidden {
  display: none;
}

/* ===== Dashboard (after login) ===== */
.dashboard-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.dashboard-frame {
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 18, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.dashboard-frame h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  background: linear-gradient(135deg, #f6d365, #fda085);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.dashboard-frame p {
  color: #a09070;
  font-size: 15px;
  margin-bottom: 24px;
}

.logout-btn {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 6px;
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
}

.logout-btn:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
}

/* ===== Custom Scrollbar (Global) ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.25);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.15) rgba(0, 0, 0, 0.2);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .login-frame {
    padding: 28px 20px 24px;
  }

  .logo-area h1 {
    font-size: 22px;
  }

  .logo-icon {
    font-size: 36px;
  }
}