/*
 * Écran de connexion : wp-login.php habillé (fiable, pas de réimplémentation
 * d'auth). Cette feuille est autonome : wp-login.php ne charge pas app.css,
 * les tokens utiles sont donc recopiés en dur ici. Seules Fraunces (logo) et
 * Plus Jakarta Sans (texte) sont chargées : IBM Plex Mono n'est pas utilisée
 * sur cet écran.
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/fraunces-vf-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/fraunces-vf-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-vf-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-vf-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bapot-fond: #FDF2EC;
  --bapot-encre: #3B2430;
  --bapot-texte-3: #A89098;
  --bapot-bordure: #F1E1D8;
  --bapot-accent: #F0724C;
}

html {
  background: var(--bapot-fond);
}

body.login {
  display: flex;
  /* Column, not row: wp-login renders siblings of #login (language switcher,
     privacy link) that would otherwise line up beside the form. */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bapot-fond);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--bapot-encre);
}

/* Removed server-side too (inc/connexion.php): belt in case a WP update
   reintroduces it. */
.language-switcher {
  display: none;
}

#login {
  width: 100%;
  max-width: 340px;
  padding: 24px;
}

/* Logotype texte à la place du logo WordPress */
#login h1 a {
  width: auto;
  height: auto;
  margin: 0 0 32px;
  background: none;
  text-indent: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--bapot-encre);
}

#loginform,
#lostpasswordform,
#registerform {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

#login label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bapot-encre);
}

#login input[type="text"],
#login input[type="password"],
#login input[type="email"] {
  width: 100%;
  height: 56px;
  margin-top: 6px;
  padding: 0 20px;
  border: 1px solid var(--bapot-bordure);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--bapot-encre);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  box-shadow: none;
}

#login input[type="text"]:focus,
#login input[type="password"]:focus,
#login input[type="email"]:focus {
  border-color: var(--bapot-accent);
  outline: 3px solid var(--bapot-accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* La session d'un an est déjà forcée par un champ caché : la case est inutile */
.forgetmenot {
  display: none;
}

.wp-core-ui .button-primary {
  width: 100%;
  height: 56px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--bapot-accent);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-shadow: none;
  box-shadow: none;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
  background: var(--bapot-accent);
  color: #FFFFFF;
}

#nav,
#backtoblog {
  margin-top: 16px;
  text-align: center;
}

#nav a,
#backtoblog a {
  color: var(--bapot-texte-3);
  font-size: 13px;
  text-decoration: none;
}

#nav a:hover,
#backtoblog a:hover {
  color: var(--bapot-encre);
}

#login_error,
.message,
.success {
  border: 1px solid var(--bapot-bordure);
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--bapot-encre);
  box-shadow: none;
  font-size: 14px;
}
