/* =========================================================
   TIOSH – WordPress login screen (inc/login.php)
   ========================================================= */
:root {
  --t-navy: #0B2A78; --t-royal: #2A32C8; --t-amber: #F5B700; --t-deep: #071A4D;
  --t-tint: #EDF2FF; --t-tint-2: #D3DDF7; --t-line: #DDE4F5; --t-ink: #13204A; --t-body: #4A5578;
  --t-head: "Sora", "Mulish", sans-serif; --t-text: "Mulish", "Segoe UI", Arial, sans-serif;
}

body.login.tiosh-login {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto;
  min-height: 100vh; margin: 0; padding: 0; background: #fff; font-family: var(--t-text); color: var(--t-ink);
}
body.tiosh-login * { box-sizing: border-box; }

/* Brand panel */
.tl-panel {
  grid-column: 1; grid-row: 1 / -1; position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px 56px;
  color: #fff; background: radial-gradient(900px 420px at 90% 0%, rgba(42,50,200,.6), transparent 60%), linear-gradient(140deg, var(--t-deep) 0%, var(--t-navy) 100%);
}
.tl-panel::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(245,183,0,.12); }
.tl-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.tl-brand__word { position: relative; font-style: italic; font-weight: 900; font-size: 34px; letter-spacing: -.03em; line-height: 1; padding-top: 6px; }
.tl-brand__word::before { content: ""; position: absolute; top: 0; left: 3px; width: 18px; height: 5px; background: var(--t-amber); transform: skewX(-18deg); }
.tl-brand__div { width: 1px; height: 38px; background: #3A5394; }
.tl-brand__sub { display: flex; flex-direction: column; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; line-height: 1.45; text-transform: uppercase; }
.tl-brand__sub b { font-size: 15px; letter-spacing: .14em; }
.tl-panel__body { position: relative; z-index: 1; max-width: 460px; }
.tl-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #B9C8F5; }
.tl-eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--t-amber); }
.tl-panel h2 { margin: 0 0 14px; font-family: var(--t-head); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.tl-panel__body > p { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: #D6E0FF; }
.tl-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tl-panel li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 700; }
.tl-panel li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--t-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071A4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.tl-panel__foot { position: relative; z-index: 1; margin: 0; font-size: 14.5px; color: #C9D6FB; }
.tl-panel__foot a { color: var(--t-amber); font-weight: 800; text-decoration: none; }
.tl-panel__foot a:hover { text-decoration: underline; }

/* Form column */
body.tiosh-login #login { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; width: 100%; max-width: 420px; margin: 0; padding: 48px 24px 24px; }
body.tiosh-login #login h1 { margin: 0 0 24px; }
body.tiosh-login #login h1 a {
  display: none; /* brand panel shows the logo on desktop */
}
.tl-head h1 { margin: 0 0 6px; font-family: var(--t-head); font-size: 30px; line-height: 1.2; color: var(--t-navy); letter-spacing: -.01em; }
.tl-head p { margin: 0 0 24px; font-size: 15.5px; color: var(--t-body); }

body.tiosh-login #loginform, body.tiosh-login #lostpasswordform, body.tiosh-login #resetpassform, body.tiosh-login #registerform {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible;
}
body.tiosh-login form p, body.tiosh-login form .user-pass-wrap { margin: 0 0 18px; }
body.tiosh-login label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--t-ink); text-transform: none; letter-spacing: 0; }
body.tiosh-login input[type="text"], body.tiosh-login input[type="email"], body.tiosh-login input[type="password"] {
  width: 100%; height: 50px; margin: 0; padding: 0 14px; font-family: var(--t-text); font-size: 16px; color: var(--t-ink);
  background: #fff; border: 1.5px solid var(--t-line); border-radius: 10px; box-shadow: none;
}
body.tiosh-login input[type="text"]:focus, body.tiosh-login input[type="email"]:focus, body.tiosh-login input[type="password"]:focus {
  border-color: var(--t-royal); box-shadow: 0 0 0 3px rgba(42,50,200,.15); outline: none;
}
body.tiosh-login .wp-pwd { position: relative; }
body.tiosh-login .wp-pwd .button.wp-hide-pw { height: 50px; width: 50px; top: 0; right: 0; color: var(--t-royal); background: none; border: 0; box-shadow: none; }
body.tiosh-login .wp-pwd .button.wp-hide-pw:focus { box-shadow: 0 0 0 2px var(--t-amber); }

body.tiosh-login .forgetmenot { float: none; margin: 0 0 20px; display: flex; align-items: center; }
body.tiosh-login .forgetmenot label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--t-body); }
body.tiosh-login input[type="checkbox"] { width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--t-tint-2); border-radius: 5px; background: #fff; box-shadow: none; }
body.tiosh-login input[type="checkbox"]:checked::before { content: ""; width: 18px; height: 18px; margin: -1.5px; background: var(--t-royal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; border-radius: 5px; }

body.tiosh-login .submit { margin: 0; padding: 0; clear: both; }
body.tiosh-login .button-primary, body.tiosh-login #wp-submit {
  float: none; width: 100%; height: 52px; padding: 0 20px; margin: 0;
  font-family: var(--t-text); font-size: 16px; font-weight: 800; letter-spacing: .01em; text-transform: none; text-shadow: none;
  color: #fff; background: var(--t-royal); border: 0; border-radius: 10px; box-shadow: none; cursor: pointer; transition: filter .15s;
}
body.tiosh-login .button-primary:hover, body.tiosh-login #wp-submit:hover { filter: brightness(1.12); background: var(--t-royal); }
body.tiosh-login .button-primary:focus { box-shadow: 0 0 0 3px var(--t-amber); }

/* Messages */
body.tiosh-login .message, body.tiosh-login .notice, body.tiosh-login #login_error, body.tiosh-login .success {
  margin: 0 0 20px; padding: 12px 16px; border: 0; border-left: 4px solid var(--t-royal); border-radius: 0 10px 10px 0; background: var(--t-tint); box-shadow: none; color: var(--t-ink); font-size: 14.5px;
}
body.tiosh-login #login_error, body.tiosh-login .notice-error { border-left-color: #D64545; background: #FDEEEE; }
body.tiosh-login .description, body.tiosh-login .indicator-hint { font-size: 13.5px; color: var(--t-body); }

/* Links under the form */
body.tiosh-login #nav, body.tiosh-login #backtoblog { margin: 22px 0 0; padding: 0; font-size: 14.5px; color: var(--t-body); text-align: center; }
body.tiosh-login #backtoblog { margin-top: 10px; }
body.tiosh-login #nav a, body.tiosh-login #backtoblog a { color: var(--t-royal); font-weight: 800; text-decoration: none; text-transform: none; letter-spacing: 0; border: 0; }
body.tiosh-login #nav a:hover, body.tiosh-login #backtoblog a:hover { text-decoration: underline; color: var(--t-navy); }
body.tiosh-login .privacy-policy-page-link { grid-column: 2; text-align: center; margin: 0 0 16px; }
body.tiosh-login .language-switcher { grid-column: 2; justify-self: center; padding: 0 0 24px; }
body.tiosh-login .language-switcher label .dashicons { color: var(--t-body); }

/* Override the WPLMS login skin (dark inputs, uppercase labels, top bar). */
html, body.tiosh-login { background: #fff !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
body.tiosh-login::before, body.tiosh-login::after { display: none !important; }
body.tiosh-login input[type="text"], body.tiosh-login input[type="email"], body.tiosh-login input[type="password"] { background: #fff !important; color: var(--t-ink) !important; border: 1.5px solid var(--t-line) !important; }
body.tiosh-login input[type="text"]:focus, body.tiosh-login input[type="email"]:focus, body.tiosh-login input[type="password"]:focus { border-color: var(--t-royal) !important; }
body.tiosh-login label, body.tiosh-login #nav, body.tiosh-login #nav a, body.tiosh-login #backtoblog a { text-transform: none !important; letter-spacing: 0 !important; }
body.tiosh-login label { font-size: 14px !important; color: var(--t-ink) !important; }
body.tiosh-login input[type="checkbox"] { background: #fff !important; border: 1.5px solid var(--t-tint-2) !important; }
body.tiosh-login .tl-head, body.tiosh-login .tl-head h1, body.tiosh-login .tl-head p { text-align: left; }
body.tiosh-login #nav { font-size: 14.5px !important; }
body.tiosh-login #login h1 a { background-image: none !important; }

/* Mobile: hide the panel, show a compact brand and a white card */
@media (max-width: 900px) {
  html, body.login.tiosh-login { background: var(--t-tint) !important; }
  body.login.tiosh-login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .tl-panel { display: none; }
  body.tiosh-login #login, body.tiosh-login .privacy-policy-page-link, body.tiosh-login .language-switcher { grid-column: 1; }
  body.tiosh-login #login { margin: 32px auto; padding: 28px 24px; max-width: 440px; width: calc(100% - 32px); background: #fff; border: 1px solid var(--t-line); border-radius: 18px; }
  body.tiosh-login #login h1 { margin: 0 0 20px; text-align: left; }
  body.tiosh-login #login h1 a { display: inline-block; width: auto !important; height: auto !important; margin: 0; background: none !important; text-indent: 0; overflow: visible; font-size: 0 !important; text-decoration: none; }
  body.tiosh-login #login h1 a::before { content: "TIOSH"; font-family: var(--t-text); font-style: italic; font-weight: 900; font-size: 30px; letter-spacing: -.03em; color: var(--t-royal); }
  .tl-head h1 { font-size: 26px; }
}
body.tiosh-login #loginform > p, body.tiosh-login #loginform .user-pass-wrap { margin-bottom: 18px !important; }
