/* Brass & Bit: the login page. The pegboard of the night shift under a lamp, the shop's sign,
   and the form as a paper key tag hung from a brass peg on a red string. */

@font-face {
  font-family: "BB Sign";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "BB Text";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "BB Mono";
  src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

body.login {
  background-color: #14120e;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 214, 140, 0.16), transparent 70%),
    radial-gradient(circle at 50% 50%, #070605 0 2.4px, transparent 3px);
  background-size: auto, 32px 32px;
  background-position: 0 0, 16px 16px;
  color: #f3ebda;
  font-family: "BB Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#login {
  width: 340px;
  padding: 7vh 0 0;
}

/* The sign */
.login h1 a {
  width: 300px;
  height: 77px;
  margin: 0 auto 0;
  background-image: url("../img/email-logo.png");
  background-size: 300px auto;
  background-position: center;
}

/* The peg and the string */
.login form {
  position: relative;
  margin-top: 64px;
  padding: 34px 28px 26px;
  background: #fbf6ea;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 22px 30px -18px rgba(0, 0, 0, 0.85), 0 2px 0 rgba(0, 0, 0, 0.35);
  color: #1b1a17;
  /* holds the floated "Remember me" and button without clipping the string above */
  display: flow-root;
  overflow: visible;
}
.login form::before {
  /* the hole, punched and ringed in brass */
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #14120e;
  box-shadow: 0 0 0 3px #c99a3b, inset 0 2px 2px rgba(0, 0, 0, 0.6);
}
.login form::after {
  /* the string from the peg down to the hole, and the peg */
  content: "";
  position: absolute;
  top: -52px;
  left: 50%;
  width: 18px;
  height: 71px;
  margin-left: -9px;
  background:
    radial-gradient(circle at 50% 9px, #e6c27a 0 4px, #a87d27 5px 8px, transparent 9px) no-repeat,
    linear-gradient(#c8402f, #c8402f) 50% 14px / 2px 57px no-repeat;
  pointer-events: none;
}

.login label {
  font-family: "BB Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #665c4e;
}
.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  margin-top: 4px;
  padding: 6px 10px;
  border: 1.5px solid #a8987a;
  border-radius: 2px;
  background: #fffdf8;
  font-size: 18px;
  color: #14120e;
}
.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
  border-color: #7a5b1a;
  box-shadow: 0 0 0 1px #7a5b1a;
  outline: none;
}
.login .button.wp-hide-pw {
  color: #665c4e;
}
.login .forgetmenot label {
  font-family: "BB Text", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #1b1a17;
}
.login input[type="checkbox"]:checked::before {
  filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(0.6);
}

.wp-core-ui.login .button-primary,
.login .button-primary {
  float: right;
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 2px;
  background: #c99a3b;
  color: #14120e;
  font-family: "BB Sign", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: none;
}
.wp-core-ui.login .button-primary:hover,
.wp-core-ui.login .button-primary:focus,
.login .button-primary:hover,
.login .button-primary:focus {
  background: #e6c27a;
  color: #14120e;
}
.wp-core-ui.login .button-primary:focus {
  box-shadow: 0 0 0 2px #fbf6ea, 0 0 0 4px #14120e;
}

/* Messages: slips on the board */
.login .message,
.login .notice,
.login .success,
.login #login_error {
  margin-top: 28px;
  margin-bottom: -40px;
  border-left-color: #c99a3b;
  background: #fbf6ea;
  color: #1b1a17;
  border-radius: 2px;
  box-shadow: none;
}
.login #login_error {
  border-left-color: #c8402f;
}

.login #nav,
.login #backtoblog {
  padding: 0 4px;
  text-align: center;
  font-family: "BB Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.login #nav {
  margin-top: 26px;
}
.login #nav a,
.login #backtoblog a,
.privacy-policy-page-link a {
  color: #b9ad96;
  text-decoration: none;
}
.login #nav a:hover,
.login #backtoblog a:hover,
.login #nav a:focus,
.login #backtoblog a:focus {
  color: #e6c27a;
}
.login .language-switcher label .dashicons {
  color: #b9ad96;
}

@media (max-width: 400px) {
  #login {
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
  }
  .login h1 a {
    width: 240px;
    background-size: 240px auto;
  }
}
