/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BASE ===== */
body {
  font-family: 'DM Sans', Arial, sans-serif;
  background: #0d1117;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(240,165,0,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 90%, rgba(255,107,53,0.06) 0%, transparent 60%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

/* ===== CONTAINER ===== */
.login-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ===== CARD ===== */
.login-card {
  width: 100%;
  max-width: 440px;
  background: #161b22;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 48px 40px 44px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(240,165,0,0.07),
    inset 0 1px 0 rgba(255,255,255,0.05);
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== LOGO ===== */
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  animation: fadeDown 0.35s ease both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-icon {
  font-size: 32px;
  line-height: 1;
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #f0a500, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== TITRE ===== */
.login-title {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #e6edf3;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

/* ===== FORM GROUP ===== */
.form-group {
  margin-bottom: 18px;
}

/* ===== INPUT WRAPPER ===== */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #0d1117;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
  border-color: #f0a500;
  box-shadow: 0 0 0 4px rgba(240,165,0,0.1);
}

/* ICONE GAUCHE */
.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  flex-shrink: 0;
  color: #4b5563;
  transition: color 0.2s;
}

.input-wrapper:focus-within .input-icon {
  color: #f0a500;
}

.input-icon svg {
  display: block;
}

/* INPUT TEXTE */
.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 14px 16px 0;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  color: #e6edf3;
  width: 100%;
}

.input-wrapper input::placeholder {
  color: #3d4451;
}

/* BOUTON OEIL */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  align-self: stretch;
  background: none;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  flex-shrink: 0;
  color: #4b5563;
  transition: color 0.2s, background 0.2s;
  border-radius: 0 14px 14px 0;
  -webkit-tap-highlight-color: transparent;
}

.toggle-password svg {
  display: block;
}

.toggle-password:hover {
  color: #f0a500;
  background: rgba(240,165,0,0.07);
}

.toggle-password:active {
  color: #f0a500;
  background: rgba(240,165,0,0.12);
}

/* ===== BOUTON SUBMIT ===== */
.btn-login {
  width: 100%;
  height: 54px;
  margin-top: 10px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #f0a500, #ff6b35);
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(240,165,0,0.25);
  -webkit-tap-highlight-color: transparent;
}

.btn-login:hover {
  opacity: 0.93;
  box-shadow: 0 6px 28px rgba(240,165,0,0.35);
}

.btn-login:active {
  transform: scale(0.98);
  opacity: 0.88;
  box-shadow: 0 2px 10px rgba(240,165,0,0.2);
}

/* ===== TABLETTE ===== */
@media (max-width: 600px) {
  .login-card {
    padding: 40px 28px 36px;
    border-radius: 20px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 420px) {
  body {
    padding: 16px;
    align-items: flex-start;
    padding-top: 10vh;
  }

  .login-card {
    padding: 32px 20px 28px;
    border-radius: 18px;
  }

  .logo-text {
    font-size: 19px;
    letter-spacing: 1.5px;
  }

  .login-title {
    font-size: 21px;
    margin-bottom: 26px;
  }

  .input-wrapper input {
    padding: 15px 12px 15px 0;
  }
}
