/*
Theme Name: Les Pleurotes de Verdun
Theme URI: https://gestionpleurotes.emotta.fr
Author: Emotta
Author URI: https://emotta.fr
Description: Espace de gestion privé. La page d’accueil est la connexion.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gestion-pleurotes
*/

:root {
  --gp-ink: #1b2420;
  --gp-muted: #5c675f;
  --gp-paper: #e6e1d4;
  --gp-card: #fbf8f2;
  --gp-line: #d9d1c2;
  --gp-green: #234237;
  --gp-green-deep: #183028;
  --gp-danger: #8b322c;
  --gp-danger-bg: #f8ece9;
  --gp-shadow: 0 24px 50px rgba(36, 42, 34, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.gp-gate {
  min-height: 100vh;
  color: var(--gp-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 36%),
    linear-gradient(165deg, #efe8d8 0%, var(--gp-paper) 48%, #ddd4c4 100%);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.gp-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.gp-card {
  width: min(100%, 440px);
  padding: 28px 32px 28px;
  background: var(--gp-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: var(--gp-shadow);
}

.gp-brand {
  margin: 0 0 4px;
  text-align: center;
}

.gp-logo {
  display: block;
  width: min(100%, 250px);
  height: auto;
  margin: 0 auto;
}

.gp-kicker {
  margin: 0 0 18px;
  color: var(--gp-muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.gp-lead,
.gp-hello {
  margin: 0 0 26px;
  color: var(--gp-muted);
  font-size: 15px;
  line-height: 1.5;
}

.gp-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gp-danger-bg);
  color: var(--gp-danger);
  font-size: 14px;
  line-height: 1.4;
}

.gp-field {
  display: block;
  margin-bottom: 16px;
}

.gp-field span {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.gp-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--gp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--gp-ink);
  font: inherit;
  font-size: 16px;
}

.gp-field input:focus {
  outline: 2px solid var(--gp-green);
  outline-offset: 1px;
  border-color: var(--gp-green);
}

.gp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--gp-green);
  color: #f7f3ea;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.gp-button:hover {
  background: var(--gp-green-deep);
}

.gp-button:focus {
  outline: 2px solid var(--gp-green);
  outline-offset: 3px;
}

.gp-note,
.gp-link {
  color: var(--gp-muted);
  font-size: 13px;
}

.gp-note {
  margin: 16px 0 0;
  text-align: center;
}

.gp-actions {
  display: grid;
  gap: 14px;
}

.gp-link {
  justify-self: center;
  text-underline-offset: 3px;
}

.gp-link:hover {
  color: var(--gp-ink);
}

@media (max-width: 520px) {
  .gp-card {
    padding: 28px 20px 22px;
    border-radius: 18px;
  }

  .gp-logo {
    width: min(100%, 220px);
  }
}
