/*!
 * login-modern.css - presentation-only restyle of login / forgot / register / lock screens.
 * Selectors are prefixed with `body` so they win over the inline <style> in login.php.
 */
html, body { min-height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2430;
  -webkit-font-smoothing: antialiased;
}
/* soft brand backdrop (only when no custom background image is configured: that is inline on <body>) */
body:not([style*="background"]) {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(99, 102, 241, .22), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(14, 165, 233, .18), transparent 55%),
    linear-gradient(180deg, #f7f8ff 0%, #eef1fb 100%);
  background-attachment: fixed;
}

/* centre layout: the whole block becomes a card */
body .login-center { background: transparent; width: 100%; max-width: 440px; padding: 24px 16px; }
body .login-wrap { margin: 6vh 0 0; }
body .login-wrap .block-center { width: 100%; max-width: 420px; margin: 0 auto; }
body .login-center .block-center,
body .left-login .block-center {
  background: #fff; border: 1px solid #e7e9ee; border-radius: 22px; padding: 28px 26px 12px;
  box-shadow: 0 24px 60px rgba(31, 36, 48, .12), 0 2px 6px rgba(31, 36, 48, .05);
}
/* side layouts keep the white column, but get the same inner spacing */
body .left-login { background: #fff; box-shadow: 0 0 40px rgba(31, 36, 48, .12); }
body .left-login .login-wrap { margin-top: 8vh; }
body .left-login .block-center { border: 0; box-shadow: none; padding: 8px 8px 12px; }

body .login-wrap, body .login-wrap .wrapper { background: transparent; }
body .login-wrap .block-center.mt-xl { margin-top: 0; }
body .login-logo { margin-bottom: 8px; }
body .login-logo img { width: auto; max-width: 72%; max-height: 84px; object-fit: contain; }

/* intro line becomes a heading */
body .login-wrap p.pv { padding: 0; margin: 0 0 18px; font-size: 14px; color: #6b7280; }
body .login-wrap p.pv::before { content: ""; display: block; }

/* the optional dark panel (logo_title mode) is flattened into the card */
body .left-login-panel { background: transparent; border: 0; box-shadow: none; margin-bottom: 0; }
body .left-login-panel > .panel-heading {
  background: transparent; border: 0; padding: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
body .left-login-panel > .panel-heading a { color: #1f2430 !important; }
body .left-login-panel > .panel-heading span { font-size: 18px !important; }
body .left-login-panel > .panel-body { padding: 0; background: transparent; }

/* fields */
body .login-wrap .form-group { margin-bottom: 14px; }
body .login-wrap .form-control {
  height: 50px; min-height: 50px; border-radius: 12px; border: 1px solid #d5d9e2; background: #f8f9fc;
  padding-left: 14px; padding-right: 44px; font-size: 16px; box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
body .login-wrap .form-control:focus { background: #fff; border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
body .login-wrap .form-control-feedback { width: 46px; height: 50px; line-height: 50px; color: #9aa1b0 !important; right: 0; }
body .login-wrap label { font-size: 13px; font-weight: 600; color: #374151; }

/* remember me / forgot */
body .login-wrap .checkbox label { font-size: 13.5px; color: #4b5563; font-weight: 500; }
body .login-wrap .login-forgot { font-size: 13.5px; font-weight: 600; color: #4f46e5 !important; }
body .login-wrap .login-forgot:hover { color: #4338ca !important; }

/* buttons */
body .login-wrap .btn {
  border-radius: 12px; font-weight: 650; font-size: 15.5px; min-height: 50px; letter-spacing: 0;
  transition: transform .12s, box-shadow .15s, background .15s;
}
body .login-wrap .btn-primary { background: linear-gradient(135deg, #4f46e5, #6366f1); border: 0; box-shadow: 0 8px 20px rgba(79, 70, 229, .32); margin-top: 6px; }
body .login-wrap .btn-primary:hover { box-shadow: 0 10px 26px rgba(79, 70, 229, .42); }
body .login-wrap .btn:active { transform: scale(.985); }
body .login-wrap .btn-default { background: #fff; border: 1px solid #d5d9e2; color: #1f2430; }
body .login-wrap .btn-purple { border: 0; border-radius: 12px; }
body .login-wrap .btn-danger { background: #4f46e5; border: 0; }

/* alerts + footer */
body .login-wrap .alert { border-radius: 12px; font-size: 13.5px; padding: 11px 14px; }
body .login-wrap .p-lg { padding: 18px 8px 6px; font-size: 12px; color: #8b92a1; line-height: 1.6; }
body .login-wrap .p-lg br { display: none; }
body .login-wrap .p-lg span:nth-child(n+3) { margin-left: 2px; }

/* "apply for a job" floating button */
body .apply_jobs.btn { top: 12px; right: 12px; border-radius: 999px; padding: 9px 18px; min-height: 40px; font-size: 13px; background: #fff; color: #4f46e5; border: 1px solid #e7e9ee; box-shadow: 0 4px 14px rgba(31, 36, 48, .08); }

/* ---- phones: the card fills the screen width, form is vertically comfortable ---- */
@media (max-width: 480px) {
  body .login-center { padding: 14px 12px; }
  body .login-wrap { margin-top: 3vh; }
  body .login-center .block-center { padding: 22px 18px 8px; border-radius: 20px; }
  body .login-logo img { max-height: 70px; }
  body .apply_jobs.btn { position: static; display: block; margin: 0 12px 20px; text-align: center; float: none !important; }
}
@media (max-width: 380px) {
  body .login-center { width: 100%; padding: 10px; }
  body .login-wrap .wd-xl, body .block-center.wd-xl { width: 100%; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body .login-wrap { margin-top: 8px; }
  body .login-center .block-center { padding: 14px 18px 6px; }
  body .login-logo img { max-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { body .login-wrap * { transition: none !important; } }
