/* =========================================================
   Orbitek Hub — Custom Login Page
   Restyles wp-login.php. Works on login / register /
   lost-password / reset-password screens.
   ========================================================= */

:root{
  --oh-red:#E8232C;
  --oh-red-dark:#C71C24;
  --oh-ink:#181414;
  --oh-ink-soft:#5A5252;
  --oh-line:#EFE4E3;
  --oh-cream:#FBF8F7;
}

/* ---------- Reset / base ---------- */
html{background:var(--oh-cream);}
body.login{
  font-family:'Inter',sans-serif;
  color:var(--oh-ink);
  background:linear-gradient(180deg,#FDFBFA 0%,#F6F0EF 100%);
  min-height:100vh;
  overflow-x:hidden;
  position:relative;
  padding:56px 20px 40px;
}
body.login *{box-sizing:border-box;}

/* ---------- Decorative side art (desktop only) ---------- */
.oh-deco{position:fixed;pointer-events:none;z-index:0;}

.oh-deco-mascot{
  bottom:0;left:0;
  width:250px;height:auto;max-height:82vh;
  object-fit:contain;object-position:bottom left;
  -webkit-mask-image:linear-gradient(to top, #000 78%, transparent 100%);
          mask-image:linear-gradient(to top, #000 78%, transparent 100%);
}
.oh-deco-desk{
  top:50%;right:0;
  width:280px;height:auto;max-height:80vh;
  transform:translateY(-50%);
  object-fit:contain;object-position:center right;
  -webkit-mask-image:linear-gradient(to left, #000 72%, transparent 100%);
          mask-image:linear-gradient(to left, #000 72%, transparent 100%);
}
@media(max-width:1500px){
  .oh-deco-mascot{width:210px;}
  .oh-deco-desk{width:235px;}
}
@media(max-width:1280px){
  .oh-deco{display:none;}
}

/* Override WP core's fixed-width #login container so our wider
   header/card/footer blocks aren't squeezed down to 320px. */
body.login #login{
  width:100%;
  max-width:560px;
  margin:0 auto;
  padding:0;
}

/* ---------- Logo ---------- */
body.login #login h1{
  margin:0 auto 6px;
  padding:0;
  width:100%;
}
body.login #login h1 a{
  background-image:url('../images/logo.webp');
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  width:210px;
  height:118px;
  margin:0 auto;
  display:block;
  text-indent:-9999px;
}

/* ---------- Header block (logo + tagline + welcome heading) ---------- */
.oh-login-head{
  position:relative;
  z-index:1;
  max-width:520px;
  margin:0 auto 8px;
  text-align:center;
}
.oh-login-tagline{
  display:flex;align-items:center;justify-content:center;gap:14px;
  margin:8px 0 26px;
}
.oh-login-tagline span{flex:0 0 46px;height:1px;background:var(--oh-line);position:relative;}
.oh-login-tagline span::after{
  content:'';position:absolute;top:50%;width:6px;height:6px;border-radius:50%;
  background:var(--oh-red);transform:translateY(-50%);
}
.oh-login-tagline span:first-child::after{right:-10px;}
.oh-login-tagline span:last-child::after{left:-10px;}
.oh-login-tagline p{
  margin:0;font-size:14px;color:var(--oh-ink-soft);font-weight:500;white-space:nowrap;
}
h2.oh-login-welcome{
  font-family:'Poppins',sans-serif;
  font-size:32px;font-weight:700;margin:0 0 8px;color:var(--oh-ink);
}
h2.oh-login-welcome b{color:var(--oh-red);font-weight:800;}
p.oh-login-sub{
  margin:0 0 30px;color:var(--oh-ink-soft);font-size:15px;
}

/* Fallback heading for register / lost-password / reset-password screens
   (WP core message like "Register For This Site" lands here too). */
.oh-login-head #login_error,
.oh-login-head .message{
  text-align:left;
  background:#FFF4F4;
  border:1px solid #F5C2C2;
  color:#8a1c1c;
  border-radius:10px;
  padding:14px 16px;
  font-size:13.5px;
  margin:0 0 20px;
}
.oh-login-head .message{
  background:#F3FBF4;border-color:#c7e8cb;color:#1c5e2b;
}

/* ---------- Card ---------- */
.oh-login-card{
  position:relative;z-index:1;
  background:#fff;
  border:1px solid var(--oh-line);
  border-radius:18px;
  box-shadow:0 30px 60px -30px rgba(24,20,20,.18);
  padding:34px 32px 26px;
  max-width:460px;
  margin:0 auto;
}

/* ---------- Form fields ---------- */
body.login form{margin:0;padding:0;box-shadow:none;border:none;background:none;}
body.login form p{margin:0 0 18px;}
body.login form p.forgetmenot{margin:2px 0 22px;}
body.login label{
  display:block;font-family:'Poppins',sans-serif;font-weight:600;font-size:13.5px;
  color:var(--oh-ink);margin-bottom:8px;
}
body.login input[type=text],
body.login input[type=password],
body.login input[type=email]{
  width:100%;
  height:52px;
  border:1.5px solid var(--oh-line);
  border-radius:10px;
  padding:0 16px 0 44px;
  font-size:14.5px;
  font-family:'Inter',sans-serif;
  color:var(--oh-ink);
  background-repeat:no-repeat;
  background-position:14px center;
  background-size:18px;
  box-shadow:none;
  transition:border-color .2s, box-shadow .2s;
}
body.login input[type=text]:focus,
body.login input[type=password]:focus,
body.login input[type=email]:focus{
  border-color:var(--oh-red);
  box-shadow:0 0 0 3px rgba(232,35,44,.1);
  outline:none;
}

/* Field icons (inline SVG data-uris, red) */
#user_login, #user_email{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8232C' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E");
  border-color:#F3C7C9;
}
#user_pass, #pass1, #pass2{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8232C' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

/* Password visibility toggle (core WP button) */
body.login .wp-pwd{position:relative;}
body.login .wp-pwd input[type=password],
body.login .wp-pwd input[type=text]{padding-right:46px;}
body.login .button.wp-hide-pw{
  position:absolute;right:6px;top:6px;
  background:none;border:none;box-shadow:none;
  color:var(--oh-red);height:40px;width:40px;
}
body.login .button.wp-hide-pw:hover{color:var(--oh-red-dark);}

/* Remember me */
body.login .forgetmenot{
  display:flex;align-items:center;gap:9px;font-size:14px;color:var(--oh-ink);
}
body.login .forgetmenot label{margin:0;font-weight:500;display:flex;align-items:center;gap:9px;}
body.login input#rememberme{
  width:18px;height:18px;border-radius:4px;border:1.5px solid var(--oh-line);accent-color:var(--oh-red);margin:0;
}

/* Submit button */
body.login .submit{margin:6px 0 0;}
body.login #wp-submit{
  width:100%;height:54px;
  background:linear-gradient(135deg,var(--oh-red),var(--oh-red-dark));
  border:none;border-radius:10px;
  color:#fff;font-family:'Poppins',sans-serif;font-weight:700;font-size:16px;
  box-shadow:0 14px 26px -10px rgba(232,35,44,.55);
  cursor:pointer;transition:transform .2s, box-shadow .2s;
  text-shadow:none;
}
body.login #wp-submit::after{content:'\2192';margin-left:8px;}
body.login #wp-submit:hover{transform:translateY(-2px);box-shadow:0 18px 30px -10px rgba(232,35,44,.6);}

/* OR divider (kept in CSS in case it's reused elsewhere; no longer
   inserted on the login form since the Google button was removed) */
.oh-login-divider{
  display:flex;align-items:center;gap:14px;margin:22px 0;color:var(--oh-ink-soft);font-size:12.5px;font-weight:600;
}
.oh-login-divider::before,
.oh-login-divider::after{content:'';flex:1;height:1px;background:var(--oh-line);}

/* ---------- Footer: nav links, back-to-site, trust note ---------- */
.oh-login-foot{
  position:relative;z-index:1;
  max-width:460px;margin:22px auto 0;text-align:center;
}
body.login #nav,
body.login #backtoblog,
.oh-login-foot p.privacy-policy-page-link{
  margin:0 0 12px;padding:0;
}
body.login #nav a,
body.login #backtoblog a,
.oh-login-foot p.privacy-policy-page-link a{
  color:var(--oh-red);font-weight:600;font-size:13.5px;
}
body.login #nav a:hover,
body.login #backtoblog a:hover{color:var(--oh-red-dark);}
body.login #backtoblog a::before{content:'\2190 ';}

.oh-login-trust{
  position:relative;z-index:1;
  max-width:460px;margin:14px auto 0;text-align:center;
  font-size:12.5px;color:var(--oh-ink-soft);line-height:1.9;
}
.oh-shield-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border-radius:50%;color:var(--oh-red);
  vertical-align:middle;margin-right:4px;
}
.oh-login-trust a{color:var(--oh-ink);font-weight:600;text-decoration:underline;}

/* ---------- Misc WP core cleanup ---------- */
body.login .language-switcher,
body.login #login p#nav br{display:none;}
body.login p#reg_passmail,
body.login .indicator-hint{font-size:12.5px;color:var(--oh-ink-soft);}

/* ---------- Responsive ---------- */
@media(max-width:600px){
  body.login{padding:34px 14px 30px;}
  h2.oh-login-welcome{font-size:26px;}
  .oh-login-card{padding:26px 20px 22px;border-radius:14px;}
  body.login #login h1 a{width:170px;height:96px;}
}
