@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: url("https://files.fantasticrp.fr/d.php?f=73fd0ffa9b10c2336cc13d59.png") no-repeat center center fixed;
  background-size: cover;
  font-family: "Poppins", sans-serif;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* noir semi-transparent */
  z-index: 0;
}

.header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 1;
}

.logo {
  width: 130px;
}

.slogan {
  font-family: "Times New Roman", Times, serif;
  font-size: 35px;
  font-style: italic;
  letter-spacing: 1px;
  color: white;
}

.main-content {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.connect-button {
  display: flex;
  align-items: center;
  /* aligne verticalement le texte et l'image */
  gap: 10px;
  /* espace entre logo et texte */
  padding: 10px 18px;
  background: linear-gradient(180deg, #5865f2 0%, #4752c4 100%); /* Discord blurple */
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px; /* same as Se connecter */
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.connect-button img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1); /* make icon white */
}

.connect-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(88, 101, 242, 0.5);
}

.watermark {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: var(--watermark-gradient);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  user-select: none;
  z-index: 9999;
  pointer-events: none;
  font-family: "Poppins", sans-serif;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 24px;
  vertical-align: middle;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.2s;
}
button[id^="toggle"]:hover .material-symbols-outlined {
  opacity: 1;
}
.login-container {
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.login-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-button {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 11;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tab-button.active {
  background: var(--main-color, #5865f2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.tab-content {
  display: none;
  position: relative;
  z-index: 10;
}

.tab-content.active {
  display: block;
}

.discord-connect-wrapper {
  position: relative;
  z-index: 10;
}

.local-login-form {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-size: 0.9em;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color, #0b1b5a);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(11, 27, 90, 0.2);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--main-color, #5865f2) 0%,
    #4752c4 100%
  );
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(88, 101, 242, 0.5);
}

.login-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.forgot-password a {
  color: white;
  text-decoration: none;
  font-size: 0.9em;
  transition: opacity 0.3s ease;
}

.forgot-password a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.error-message {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px;
  color: #ff4444;
  margin-bottom: 20px;
  display: none;
  text-align: center;
}

.divider {
  text-align: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
}

/* small inline divider used between forgot-password and discord hint */
.inline-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 14px auto;
  width: 60%;
}

/* small neon red hint used above the Discord button */
.discord-hint {
  text-align: left; /* align left as requested */
  margin-top: 12px;
  color: #ff001f; /* stronger neon red */
  font-size: 0.68rem; /* even smaller */
  font-weight: 600;
  line-height: 1;
  max-width: 200px; /* keep it smaller than the button */
  white-space: nowrap; /* single line */
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0;
  text-shadow:
    0 0 8px rgba(255,0,31,0.7),
    0 0 14px rgba(255,0,31,0.35);
  letter-spacing: 0.2px;
}
