:root {
  --bgm-navy: #003f4c;
  --bgm-navy-dark: #002f3a;
  --bgm-teal: #075665;
  --bgm-orange: #ef8a22;
  --bgm-text: #073a46;
  --bgm-muted: #647782;
  --bgm-border: #d7e3e8;
  --bgm-bg: #f4f8fa;
  --bgm-white: #fff;
  --bgm-shadow: 0 28px 80px rgba(0, 48, 58, .14);
}

html,
body.login {
  min-height: 100%;
}

body.login {
  margin: 0;
  padding: 52px 18px 34px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.98) 0, rgba(255,255,255,.88) 34%, rgba(243,248,250,.94) 68%, rgba(226,237,242,1) 100%),
    linear-gradient(135deg, #ffffff 0%, #edf5f8 100%);
  color: var(--bgm-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.login::before {
  content: "";
  position: fixed;
  left: -10vw;
  right: -10vw;
  bottom: -25vh;
  height: 44vh;
  background: linear-gradient(90deg, rgba(0,63,76,.10), rgba(239,138,34,.08), rgba(0,63,76,.10));
  filter: blur(42px);
  pointer-events: none;
}

#login {
  width: min(640px, calc(100vw - 36px));
  padding: 0;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.login h1 {
  margin: 0 0 34px;
  text-align: center;
}

.login h1 a {
  width: min(430px, 88vw) !important;
  height: 126px !important;
  margin: 0 auto 18px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  outline: none;
  display: block;
}

.login h1::after {
  content: "Welkom bij Buitengewoon Mobiel";
  display: block;
  margin-top: 6px;
  color: var(--bgm-navy);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.03em;
}

#logins::before {
  content: "Intranet voor medewerkers";
  display: block;
  margin: -22px 0 36px;
  text-align: center;
  color: var(--bgm-muted);
  font-size: 18px;
  font-weight: 500;
}

#loginform,
#lostpasswordform,
#resetpassform,
#registerform {
  margin: 0;
  padding: 42px 48px 140px;
  border: 1px solid rgba(215,227,232,.95);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--bgm-shadow);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.bgm-login-card-head {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 22px;
  align-items: center;
  margin: 0 0 32px;
}

.bgm-login-card-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, var(--bgm-navy) 0%, var(--bgm-teal) 100%);
  box-shadow: 0 15px 34px rgba(0,63,76,.22);
  font-size: 30px;
}

.bgm-login-card-text h2 {
  margin: 0 0 6px;
  color: var(--bgm-navy);
  font-size: 29px;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -.025em;
}

.bgm-login-card-text p {
  margin: 0;
  color: var(--bgm-muted);
  font-size: 16px;
  line-height: 1.5;
}

#login form p,
.user-pass-wrap {
  margin-bottom: 18px;
}

.login label {
  color: var(--bgm-text);
  font-size: 14px;
  font-weight: 700;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  width: 100%;
  min-height: 60px;
  box-sizing: border-box;
  padding: 12px 18px;
  border: 1px solid var(--bgm-border);
  border-radius: 12px;
  background: #fff;
  color: var(--bgm-text);
  font-size: 17px;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
  border-color: rgba(239,138,34,.82);
  box-shadow: 0 0 0 4px rgba(239,138,34,.16);
  outline: none;
}

.user-pass-wrap .wp-pwd {
  position: relative;
}

.login .button.wp-hide-pw {
  top: 50%;
  transform: translateY(-50%);
  color: var(--bgm-navy);
}

.login .forgetmenot {
  float: none;
  align-items: center;
  margin: 8px 0 24px;
}

.login .forgetmenot label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bgm-muted);
  font-size: 16px;
  font-weight: 600;
}

.login input[type="checkbox"] {
  width: 23px;
  height: 23px;
  margin: 0;
  border: 1px solid #a9bac3;
  border-radius: 6px;
  box-shadow: none;
}

.login input[type="checkbox"]:checked::before {
  content: "✓";
  width: 22px;
  height: 22px;
  margin: -2px 0 0 2px;
  color: var(--bgm-orange);
  font-size: 23px;
  line-height: 1;
}

.login .submit {
  margin: 0;
}

.wp-core-ui .button-primary {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bgm-navy) 0%, var(--bgm-teal) 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  text-shadow: none;
  box-shadow: 0 16px 30px rgba(0,63,76,.25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
  background: linear-gradient(135deg, var(--bgm-navy-dark) 0%, var(--bgm-navy) 100%);
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(0,63,76,.30);
}

.login #nav,
.login #backtoblog {
  text-align: center;
  margin: 51px 0 0;
  padding: 0;
}

.login #backtoblog {
  display: none;
}

.login #nav a,
.login #backtoblog a,
.privacy-policy-page-link a {
  color: var(--bgm-orange) !important;
  font-weight: 700;
  text-decoration: none;
}

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

.login .message,
.login .notice,
.login #login_error {
  border-left: 4px solid var(--bgm-orange);
  border-radius: 12px;
  margin: 0 0 22px;
  padding: 14px 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,43,55,.08);
  color: var(--bgm-text);
}

.login #login_error {
  border-left-color: #dc3545;
}

.bgm-login-footer {
  width: min(740px, calc(100vw - 36px));
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(9,47,60,.62);
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.bgm-login-footer span:first-child::before {
  content: "✓";
  color: var(--bgm-orange);
  margin-right: 6px;
  font-weight: 850;
}

@media (max-width: 680px) {
  body.login {
    padding-top: 34px;
  }

  .login h1 a {
    width: min(330px, 86vw) !important;
    height: 96px !important;
  }

  .login h1::after {
    font-size: 25px;
  }

  #login::before {
    margin-top: -18px;
    margin-bottom: 28px;
    font-size: 16px;
  }

  #loginform,
  #lostpasswordform,
  #resetpassform,
  #registerform {
    padding: 30px 24px 32px;
    border-radius: 20px;
  }

  .bgm-login-card-head {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    margin-bottom: 26px;
  }

  .bgm-login-card-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .bgm-login-card-text h2 {
    font-size: 25px;
  }

  .bgm-login-card-text p {
    font-size: 15px;
  }
}