/* Self Storage login screen visual refresh */
:root {
  --srm-login-orange: #f97316;
  --srm-login-orange-dark: #c2410c;
  --srm-login-orange-soft: #ffedd5;
  --srm-login-ink: #1f2937;
  --srm-login-muted: #6b7280;
  --srm-login-card: rgba(255, 255, 255, .94);
  --srm-login-border: rgba(249, 115, 22, .18);
  --srm-login-shadow: 0 24px 60px rgba(15, 23, 42, .16);
}

body.login {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, .28) 0, rgba(251, 146, 60, 0) 34%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, .20) 0, rgba(249, 115, 22, 0) 32%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--srm-login-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.login:before {
  content: "";
  position: fixed;
  inset: 22px;
  pointer-events: none;
  border: 1px solid rgba(249, 115, 22, .12);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.44), rgba(255,247,237,.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

#login {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 36px));
  padding: 7vh 0 36px;
}

.login h1 {
  margin-bottom: 18px;
}

.login h1 a {
  width: 260px;
  height: 84px;
  margin: 0 auto;
  background-size: contain !important;
  background-position: center !important;
  filter: drop-shadow(0 14px 24px rgba(249, 115, 22, .16));
}

.login form {
  position: relative;
  margin-top: 18px;
  padding: 30px 30px 28px;
  border: 1px solid var(--srm-login-border);
  border-radius: 28px;
  background: var(--srm-login-card);
  box-shadow: var(--srm-login-shadow);
  overflow: hidden;
}

.login form:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #fb923c 0%, #f97316 54%, #ea580c 100%);
}

.login label {
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  min-height: 46px;
  margin-top: 7px;
  padding: 10px 14px;
  border: 1px solid rgba(249, 115, 22, .20);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--srm-login-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.8), inset 0 1px 2px rgba(15,23,42,.04);
  font-size: 16px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
  border-color: #f97316;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .14);
  outline: none;
}

.login .button.wp-hide-pw {
  top: 4px;
  right: 6px;
  min-width: 40px;
  border: 0;
  color: #ea580c;
  box-shadow: none;
}

.login .button.wp-hide-pw:hover,
.login .button.wp-hide-pw:focus {
  color: #9a3412;
  background: transparent;
  box-shadow: none;
}

.login .forgetmenot {
  margin-top: 8px;
}

.login .forgetmenot label {
  color: var(--srm-login-muted);
  font-weight: 700;
}

.login input[type="checkbox"] {
  border-color: rgba(249, 115, 22, .35);
  border-radius: 5px;
}

.login input[type="checkbox"]:checked::before {
  filter: hue-rotate(335deg) saturate(1.7);
}

.wp-core-ui .button-primary {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 58%, #ea580c 100%);
  box-shadow: 0 14px 28px rgba(249, 115, 22, .28);
  color: #fff;
  font-weight: 900;
  text-shadow: none;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
  background: linear-gradient(135deg, #fdba74 0%, #f97316 55%, #c2410c 100%);
  box-shadow: 0 18px 34px rgba(249, 115, 22, .34), 0 0 0 4px rgba(249, 115, 22, .14);
  color: #fff;
  transform: translateY(-1px);
  filter: saturate(1.03);
}

.login #nav,
.login #backtoblog,
.login .privacy-policy-page-link {
  position: relative;
  z-index: 2;
  text-align: center;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
  color: #9a3412;
  font-weight: 800;
  text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover {
  color: #ea580c;
  text-decoration: underline;
}

.login .message,
.login .notice,
.login .success {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(249, 115, 22, .22);
  border-left: 5px solid #f97316;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,247,237,.86));
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  color: var(--srm-login-ink);
}

.login #login_error {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(220, 38, 38, .22);
  border-left: 5px solid #dc2626;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(254,242,242,.90));
  box-shadow: 0 12px 28px rgba(127,29,29,.08);
}

.language-switcher {
  position: relative;
  z-index: 2;
}

.language-switcher select {
  border-color: rgba(249, 115, 22, .22);
  border-radius: 14px;
}

@media (max-width: 520px) {
  body.login:before {
    inset: 10px;
    border-radius: 24px;
  }

  #login {
    width: min(390px, calc(100vw - 24px));
    padding-top: 5vh;
  }

  .login h1 a {
    width: 220px;
    height: 72px;
  }

  .login form {
    padding: 26px 20px 24px;
    border-radius: 24px;
  }

  .wp-core-ui .button-primary {
    width: 100%;
    margin-top: 12px;
  }
}


/* 1.0.18.389: Keep the native WordPress login form proportional on all themes. */
#login,
.login form,
.login form p,
.login form .user-pass-wrap,
.login form .wp-pwd {
  box-sizing: border-box;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.login label {
  display: block;
  line-height: 1.35;
  word-break: normal;
}

.login .button.wp-hide-pw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* 1.0.18.392: Native WordPress login footer links as SRM app buttons, no language picker. */
.login .language-switcher,
body.login .language-switcher,
body.login #language-switcher,
body.login .language-switcher-locales,
body.login form#language-switcher {
  display: none !important;
}

/* 1.0.18.394: Footer links under wp-login: two small buttons in one row, wide site button in second row. */
#login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 0;
  align-items: start;
}

.login h1,
.login #login_error,
.login .message,
.login .notice,
.login .success,
.login form,
.login #nav,
.login #backtoblog {
  grid-column: 1 / -1;
}

.login #nav,
.login #backtoblog {
  position: relative;
  z-index: 2;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  text-align: center;
  line-height: 1.25;
  font-size: 0;
  box-sizing: border-box;
}

.login #nav {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: stretch;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.login #nav a {
  flex: 1 1 0;
  min-width: 0;
}

.login #nav a + a {
  margin-left: 10px;
}

.login #backtoblog {
  display: block;
}

/* The requested layout has only two rows: nav links on row one and the wide site link on row two. */
.login .privacy-policy-page-link {
  display: none !important;
}

.login #nav a,
.login #backtoblog a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(249, 115, 22, .24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96) 0%, rgba(255, 247, 237, .92) 100%);
  color: #9a3412 !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
  text-decoration: none !important;
  white-space: normal;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
  box-sizing: border-box;
}

.login #nav a {
  width: auto !important;
}

.login #backtoblog a {
  min-height: 46px;
  padding-inline: 22px;
}

.login #nav a:hover,
.login #nav a:focus,
.login #backtoblog a:hover,
.login #backtoblog a:focus {
  border-color: rgba(249, 115, 22, .55);
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c !important;
  box-shadow: 0 16px 32px rgba(249, 115, 22, .16), 0 0 0 4px rgba(249, 115, 22, .10);
  transform: translateY(-1px);
}

@supports selector(:has(*)) {
  .login #nav:not(:has(a:nth-of-type(2))) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  #login {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .login #nav,
  .login #backtoblog {
    grid-column: 1 / -1;
    margin-top: 10px !important;
  }

  .login #nav {
    flex-direction: column;
  }

  .login #nav a + a {
    margin-left: 0;
    margin-top: 10px;
  }

  .login #nav a,
  .login #backtoblog a {
    width: 100% !important;
    min-height: 40px;
  }
}
