/* TestingVim login screens */
body.login {
  --navy: #14284b; --navy-2: #1d3766; --saffron: #ff7a1a; --ink: #16202f; --muted: #5a6577; --line: #e3e6ec;
  font-family: "Noto Sans", system-ui, sans-serif;
  background: #fbfaf7 linear-gradient(transparent 31px, rgba(20,40,75,.045) 32px) 0 0 / 100% 32px;
  color: var(--ink);
  min-height: 100vh;
}

/* Brand panel (left) */
.tvl-panel { display: none; }
@media (min-width: 900px) {
  .tvl-panel {
    display: flex; align-items: center; justify-content: center;
    position: fixed; inset: 0 auto 0 0; width: 46%;
    background: radial-gradient(600px 400px at 90% 0%, rgba(255,122,26,.22), transparent 60%), var(--navy);
    color: #fff; overflow: hidden;
  }
  .tvl-panel::after {
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px;
    border-radius: 50%; border: 48px solid rgba(255,255,255,.05);
  }
}
.tvl-panel-in { max-width: 420px; padding: 48px; position: relative; z-index: 1; }
.tvl-word { font: 800 30px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; margin: 0 0 40px; }
.tvl-word b, .tvl-panel h2 + .tvl-hi { color: var(--saffron); }
.tvl-panel h2 { font: 800 40px/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; margin: 0 0 12px; color: #fff; }
.tvl-hi { font-family: "Noto Sans Devanagari", sans-serif; font-size: 17px; margin: 0 0 28px; }
.tvl-points { list-style: none; margin: 0 0 36px; padding: 0; }
.tvl-points li { padding: 8px 0 8px 28px; position: relative; opacity: .9; }
.tvl-points li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border-radius: 4px 4px 8px 8px; background: #2f9e44; }
.tvl-pal { display: grid; grid-template-columns: repeat(5, 40px); gap: 8px; }
.tvl-pal span { height: 36px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border-radius: 6px; background: rgba(255,255,255,.12); }
.tvl-pal .an { background: #2f9e44; border-radius: 14px 14px 6px 6px; }
.tvl-pal .na { background: #e5484d; border-radius: 6px 6px 14px 14px; }
.tvl-pal .mr, .tvl-pal .am { background: #6e44c9; border-radius: 50%; }
.tvl-pal .cur { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* Form column (right) */
#login { width: 100% !important; max-width: 440px; margin: 0 auto !important; padding: 40px 20px !important; box-sizing: border-box; }
@media (min-width: 900px) {
  .login-form-col { }
  #login {
    position: relative; left: 23%; /* centre in the right 54% */
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 48px 20px !important;
  }
}

/* Logo: brand mark + wordmark instead of the WordPress "W" */
.login h1 { margin-bottom: 28px; text-align: left; }
.login h1 a {
  background: none !important; width: auto !important; height: auto !important; margin: 0 !important;
  text-indent: 0 !important; overflow: visible !important;
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 26px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em;
  color: var(--navy) !important; text-decoration: none;
}
.login h1 a::before {
  content: ""; width: 30px; height: 30px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect x='0' y='0' width='13.5' height='13.5' rx='3.5' fill='%2314284b'/%3E%3Ccircle cx='23.25' cy='6.75' r='6.75' fill='%23ff7a1a'/%3E%3Crect x='0' y='16.5' width='13.5' height='13.5' rx='3.5' fill='%232f9e44'/%3E%3Crect x='16.5' y='16.5' width='13.5' height='13.5' rx='3.5' fill='%23d5dbe5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.login h1 a:focus { box-shadow: none; outline: 2px solid var(--saffron); outline-offset: 4px; border-radius: 4px; }

.tvl-intro h2 { font: 800 28px/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -.01em; margin: 0 0 6px; color: var(--ink); }
.tvl-intro p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

/* Form card */
.login form {
  margin: 0 !important; padding: 28px !important; border: 1px solid var(--line) !important; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(20,40,75,.08) !important; background: #fff;
}
.login label { font-weight: 600; font-size: 14px; color: var(--ink); }
.login form .input, .login input[type=text], .login input[type=password], .login input[type=email] {
  font-size: 16px !important; padding: 10px 14px !important; min-height: 46px; margin: 6px 0 16px !important;
  border: 1.5px solid var(--line) !important; border-radius: 10px !important; background: #fbfbfd !important; box-shadow: none !important;
}
.login form .input:focus, .login input:focus { border-color: var(--navy) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(20,40,75,.12) !important; outline: none; }
.login .button.wp-hide-pw { height: 46px; min-height: 46px; top: 6px; color: var(--muted); }
.login .button.wp-hide-pw:focus { box-shadow: none; border-color: transparent; }
.login .forgetmenot { margin-top: 6px; }
.login .forgetmenot label { font-weight: 500; color: var(--muted); }
.login input[type=checkbox]:checked::before { filter: hue-rotate(160deg) saturate(3); }

.wp-core-ui .button-primary, .login .button-primary {
  background: var(--saffron) !important; border: 0 !important; border-radius: 10px !important; box-shadow: none !important; text-shadow: none !important;
  font-weight: 700 !important; font-size: 15px !important; min-height: 44px !important; padding: 0 22px !important; line-height: 44px !important;
}
.wp-core-ui .button-primary:hover { background: #ec6400 !important; }
.wp-core-ui .button-primary:focus { box-shadow: 0 0 0 3px rgba(255,122,26,.35) !important; }
.login .submit { padding-top: 4px; }

/* Links under the form */
.login #nav, .login #backtoblog { padding: 0 !important; margin: 16px 0 0 !important; font-size: 14px; }
.login #nav a, .login #backtoblog a { color: var(--navy-2) !important; font-weight: 600; text-decoration: none; }
.login #nav a:hover, .login #backtoblog a:hover { color: var(--saffron) !important; }
.login #backtoblog a { color: var(--muted) !important; font-weight: 500; }

/* Messages */
.login .message, .login .notice, .login #login_error {
  border: 0 !important; border-left: 4px solid var(--navy) !important; border-radius: 10px; box-shadow: none !important;
  background: #eef2fa !important; margin: 0 0 16px !important; padding: 12px 14px !important;
}
.login #login_error, .login .notice-error { border-left-color: #e5484d !important; background: #fdecec !important; }
.login .success { border-left-color: #2f9e44 !important; background: #e8f5ec !important; }

/* Language switcher at the bottom */
.language-switcher { margin-left: 46%; }
@media (max-width: 899px) { .language-switcher { margin-left: 0; } }
.privacy-policy-page-link { text-align: left; }

/* Desktop: the brand panel already carries the logo */
@media (min-width: 900px) { .login h1 { display: none; } }
/* WordPress's own "Register For This Site" box repeats our heading */
.login .message.register { display: none; }

/* Sign-up form */
.tvl-hp { position: absolute !important; left: -9999px !important; }
.tvl-phone { display: flex; align-items: stretch; margin: 6px 0 16px; }
.tvl-phone > span { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: #f1f3f7; font-weight: 600; color: var(--muted); }
.login .tvl-phone .input { margin: 0 !important; border-radius: 0 10px 10px 0 !important; }
.tvl-help { margin: -10px 0 14px !important; font-size: 13px; color: var(--muted); }
.login .wp-pwd { position: relative; }
.login .wp-pwd .input { margin-bottom: 16px !important; }
.tvl-exams { border: 0; padding: 0; margin: 0 0 18px; }
.tvl-exams legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.tvl-exam { display: inline-block; margin: 0 6px 6px 0; font-weight: 500 !important; }
.tvl-exam input { position: absolute; opacity: 0; }
.tvl-exam span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink); background: #fff; }
.tvl-exam input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.tvl-exam input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }
.login .tvl-wide { width: 100%; float: none !important; }
.tvl-terms { font-size: 12.5px; color: var(--muted); margin: 14px 0 0 !important; text-align: center; }
.tvl-terms a { color: var(--muted); }
.tv-signup #login_error a { color: var(--navy-2); font-weight: 600; }
