  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
    body {
      background: var(--bg, #0a0a0b);
      color: var(--text, #EEEEF2);
      font-family: 'Space Grotesk', sans-serif;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      position: relative;
      overflow: hidden;
    }

    body {
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: inset 0 0 100px rgba(255,255,255,0.03);
}

    body::before {
      content: '';
      position: fixed;
      width: 600px;
      height: 600px;
      top: -250px;
      left: -250px;
      background: radial-gradient(circle, rgba(0,191,255,0.07) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
    }
 
    body::after {
      content: '';
      position: fixed;
      width: 600px;
      height: 600px;
      bottom: -250px;
      right: -250px;
      background: radial-gradient(circle, rgba(138,43,226,0.07) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
    }
 
    .card {
      width: 100%;
      max-width: 480px;
        background: rgba(14, 14, 16, 0.75);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
      border: 1px solid var(--border, rgba(255,255,255,0.066));
      border-radius: 16px;
      padding: 2rem 2rem;
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .card-logo {
      display: flex;
      align-items: center;
       justify-content: center !important;
      margin-bottom: 1.4rem;
      text-decoration: none;
    }
 
    .card-logo svg {
    height:70px;
      width:70px;
    }
    .card-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text, #EEEEF2);
      text-align: center;
      letter-spacing: -0.02em;
      margin-bottom: 4px;
    }
 
.alt-login-note {
  font-size: 0.78rem;
  color: var(--text-muted, #7E7E90);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-top:-10px;
  justify-content: center;
  gap: 6px;
  transition: color 0.15s ease;
  cursor: pointer;
}

.alt-login-note:hover {
  color: var(--text, #EEEEF2);
}

.alt-login-note i {
  font-size: 0.75rem;
}
    .card-sub {
      font-size: 0.825rem;
      color: var(--text-muted, #7E7E90);
      text-align: center;
      font-weight: 300;
    }
 
    .card-sub a {
      color: var(--text, #EEEEF2);
      font-weight: 500;
      text-decoration: none;
      background: linear-gradient(135deg, #00BFFF, #8A2BE2);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
 
    .card-sub a:hover { opacity: 0.8; }

    .card-legal {
      margin-top: 18px;
      font-size: 0.75rem;
      line-height: 1.6;
    }
 
    .form {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 6px;
    }
 
    .field {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
 
    label {
      font-size: 0.78rem;
      color: var(--text-muted, #7E7E90);
      font-weight: 400;
      letter-spacing: 0.01em;
    }
 
    .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border, rgba(255,255,255,0.066));
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.input-wrap:focus-within {
  border-color: rgba(0,191,255,0.35);
  background: rgba(0,191,255,0.03);
}

input {
  background: transparent;
  border: none;       
  border-radius: 8px;
  color: var(--text, #EEEEF2);
  font-size: 0.875rem;
  font-family: 'Space Grotesk', sans-serif;
  padding: 11px 8px 11px 36px;
  outline: none;
  flex: 1;           
  min-width: 0;
}

input:focus {
  border-color: none;
  background: transparent;
}

.input-wrap > i {
  position: absolute;
  left: 13px;
  color: var(--text-muted, #7E7E90);
  font-size: 0.8rem;
  pointer-events: none;
}

.eye-btn {
  background: none;
  border: none;
  color: var(--text-faint, #404050);
  cursor: pointer;
  padding: 0 12px;
  font-size: 0.8rem;
  transition: color 0.15s ease;
  flex-shrink: 0;     
}
 
    input::placeholder { color: rgba(255,255,255,0.2); }
 
    .btn-login {
      display: block;
      width: 100%;
      text-align: center;
      padding: 12px 24px;
      font-size: 0.875rem;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
      border-radius: 10px;
      margin-top:20px;
      cursor: pointer;
      letter-spacing: 0.01em;
      position: relative;
      background: linear-gradient(#0e0e10, #0e0e10) padding-box,
                  linear-gradient(135deg, rgba(0,191,255,0.6), rgba(138,43,226,0.6)) border-box;
      border: 1.5px solid transparent;
      color: var(--text, #EEEEF2);
      transition: color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
      z-index: 0;
      margin-bottom: 16px;
    }

    .btn-login:hover {
    box-shadow: inset 0 0 12px rgba(0, 191, 255, 0.08), inset 0 0 24px rgba(138, 43, 226, 0.06);
}

    .btn-login:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
 
    .divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
      color: var(--text-muted, #7E7E90);
      font-size: 0.72rem;
      font-weight: 300;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
 
    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255,255,255,0.2);
    }
 
.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid rgba(88, 101, 242, 0.5);
  color: #8b9cf4;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.discord-btn:hover {
    box-shadow: inset 0 0 12px rgba(0, 191, 255, 0.08), inset 0 0 24px rgba(138, 43, 226, 0.06);
}
 
    .discord-btn i { font-size: 1.05rem; }
 
.error {
  font-size: 0.78rem;
  color: #e24b4a;
  font-weight: 400;
  margin-top: 10px;
  display: none;
}

.error.visible {
  display: block;
}
    #login-view, #signup-view, #forgot-view, #reset-view {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#signup-view, #forgot-view {
  display: none;
}

.connect-title {
  margin-bottom: 10px;
}

.connect-sub {
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.card-logout {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-faint, #404050);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.card-logout:hover {
  color: var(--text-muted, #7E7E90);
  background: rgba(255,255,255,0.05);
}

.eye-btn:hover {
  color: var(--text-muted, #7E7E90);
}
.forgot-link {
  align-self: flex-start;
  margin-top: -4px;
  padding: 2px 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.78rem;
  color: var(--text-muted, #7E7E90);
  cursor: pointer;
}

.forgot-link:hover { color: var(--text, #EEEEF2); }

.notice {
  display: none;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #34d399;
  margin-top: 10px;
}

.notice.visible { display: block; }

a.btn-login { display: flex; align-items: center; justify-content: center; text-decoration: none; }
a.btn-login[hidden] { display: none; }

.card [hidden] { display: none !important; }
