/* Page connexion / compte — LeGeekShop */

.lgk-auth {
  --lgk-auth-accent: #00d4aa;
  --lgk-auth-accent-glow: rgba(0, 212, 170, 0.25);
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}

.lgk-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 212, 170, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(120, 80, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.lgk-auth__grid {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 18, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.lgk-auth__brand {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(0, 212, 170, 0.08) 0%, rgba(12, 14, 18, 0.4) 60%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.lgk-auth__logo {
  width: 160px;
  height: auto;
  margin-bottom: 1.5rem;
}

.lgk-auth__brand h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lgk-auth__brand p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 28ch;
}

.lgk-auth__features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
}

.lgk-auth__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #b0b8c4;
}

.lgk-auth__features li::before {
  content: "✓";
  color: var(--lgk-auth-accent);
  font-weight: 700;
}

.lgk-auth__panel {
  padding: 2.5rem 2rem;
}

.lgk-auth__tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lgk-auth__tab {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #888;
  transition: background 0.15s, color 0.15s;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a.lgk-auth__tab:hover {
  color: #ccc;
}

.lgk-auth__tab.is-active {
  background: var(--lgk-auth-accent);
  color: #000;
}

.lgk-auth__grid--single {
  grid-template-columns: 1fr;
  width: min(100%, 480px);
}

.lgk-auth__page-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.lgk-auth__page-lead {
  margin: 0 0 1.25rem;
  color: #9ca3af;
  font-size: 0.92rem;
  line-height: 1.5;
}

.lgk-auth__hint-box {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.28);
  color: #b8f5e8;
  font-size: 0.85rem;
  line-height: 1.45;
}

.lgk-auth__link-inline {
  color: var(--lgk-auth-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lgk-auth__admin-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.25);
  font-size: 0.82rem;
  color: #b8f5e8;
  line-height: 1.45;
}

.lgk-auth__admin-banner strong {
  color: var(--lgk-auth-accent);
}

.lgk-auth__creds {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lgk-auth__creds-title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.lgk-auth__creds-list {
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.lgk-auth__creds-list div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.88rem;
}

.lgk-auth__creds-list dt {
  color: #666;
  margin: 0;
}

.lgk-auth__creds-list dd {
  margin: 0;
}

.lgk-auth__creds-list code {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--lgk-auth-accent);
  word-break: break-all;
}

.lgk-auth__creds-fill {
  border: 1px solid rgba(0, 212, 170, 0.35);
  background: rgba(0, 212, 170, 0.1);
  color: var(--lgk-auth-accent);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.lgk-auth__creds-fill:hover {
  background: rgba(0, 212, 170, 0.18);
}

.lgk-auth__creds-hint {
  margin: 0;
  font-size: 0.72rem;
  color: #555;
  line-height: 1.45;
}

.lgk-auth__creds-hint code {
  font-size: 0.7rem;
  color: #777;
}

.lgk-auth__field {
  margin-bottom: 1rem;
}

.lgk-auth__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.lgk-auth__field input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0c10;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lgk-auth__field input:focus {
  outline: none;
  border-color: var(--lgk-auth-accent);
  box-shadow: 0 0 0 3px var(--lgk-auth-accent-glow);
}

.lgk-auth__field input::placeholder {
  color: #555;
}

.lgk-auth__pw-wrap {
  position: relative;
}

.lgk-auth__pw-wrap input {
  padding-right: 3rem;
}

.lgk-auth__pw-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #666;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem;
}

.lgk-auth__pw-toggle:hover {
  color: #aaa;
}

.lgk-auth__error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff8a8a;
  font-size: 0.85rem;
}

.lgk-auth__submit {
  width: 100%;
  margin-top: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
  color: #000;
  transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}

.lgk-auth__submit:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.lgk-auth__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lgk-auth__footer {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #666;
}

.lgk-auth__footer a {
  color: var(--lgk-auth-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lgk-auth__footer a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .lgk-auth__grid {
    grid-template-columns: 1fr;
  }
  .lgk-auth__brand {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.75rem 1.5rem;
  }
  .lgk-auth__features {
    display: none;
  }
  .lgk-auth__panel {
    padding: 1.75rem 1.5rem;
  }
}
