/* Account pages (sign-in, forgot/reset password, change password).

   A deliberate reproduction of the live .NET design at payroll.aumkar.com.my,
   whose `/` 302s to `/SignIn` -- so that page IS the site's landing page, and
   matching it is what makes the two front ends read as one application during
   the strangler-fig transition. Values below are measured from the compiled
   wwwroot/assets/css/style.css:6505-6583 of the live app, flattened out of its
   deeply nested selectors.

   Loaded only by accounts/templates/accounts/_account_base.html, not site-wide:
   theme.css is on every page, and keeping these rules in their own file makes
   the swap (and any revert) a single-file operation.

   Four deliberate departures from the live CSS, each for a reason:

   1. .account-btn font-size is 20px here, not 22px -- at 22px "Reset Password"
      overflows the 480px card on a ~400px-wide phone viewport.
   2. Errors use Bootstrap's .alert.alert-danger rather than the live page's
      <p style="color:red"> -- plain red on white fails WCAG AA at small sizes,
      and Bootstrap 5.3 is already loaded here.
   3. The logo is capped at max-width:360px rather than the live page's inline
      width:400px (which contradicts its own stylesheet's 100px rule) -- 400px
      overflows the 480px card on a phone.
   4. The password eye is a real <button> with an inline SVG, not a Font Awesome
      <span>: no icon font is vendored in this project, and a <span> is not
      keyboard-reachable. */

.account-page {
  display: flex;
  align-items: center;
}

.account-page .main-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.account-content {
  padding: 20px 0;
  width: 100%;
}

.account-logo {
  margin-bottom: 30px;
  text-align: center;
}

.account-logo img {
  max-width: 360px;
  width: 100%;
  height: auto;
}

.account-box {
  background-color: #ffffff;
  border: 1px solid #ededed;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  overflow: hidden;
  width: 480px;
  border-radius: 4px;
}

@media (max-width: 991px) {
  .account-box {
    width: 100%;
    margin: 0 0 20px;
  }
}

.account-wrapper {
  padding: 30px;
}

.account-title {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 5px;
  text-align: center;
}

.account-subtitle {
  color: #888888;
  font-size: 18px;
  text-align: center;
  margin: 0 0 30px;
}

.account-box .form-group {
  margin-bottom: 25px;
}

.account-box label {
  color: #1f1f1f;
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 5px;
}

.account-box .form-control {
  background-color: #fbfbfb;
  border: 1px solid #e3e3e3;
  height: 46px;
  border-radius: 4px;
}

/* The live page's orange-to-pink gradient. Kept verbatim: together with the
   480px card it is what makes this read as "the same app" as live. */
.account-btn {
  background: #ff9b44;
  background: linear-gradient(to right, #ff9b44 0%, #fc6075 100%);
  border: 0;
  color: #ffffff;
  display: block;
  font-size: 20px;
  width: 100%;
  border-radius: 4px;
  padding: 10px 26px;
}

.account-btn:hover,
.account-btn:focus {
  background: #fc6075;
  background: linear-gradient(to right, #fc8a3a 0%, #f7506a 100%);
  color: #ffffff;
}

/* Keep a visible focus ring: the gradient overrides Bootstrap's .btn-primary
   box-shadow, and a keyboard user must still be able to see where they are. */
.account-btn:focus-visible {
  outline: 3px solid rgba(252, 96, 117, 0.55);
  outline-offset: 2px;
}

.account-footer {
  text-align: center;
}

/* Password visibility toggle. Positioned like the live page's #toggle-password
   (absolute, top 15px / right 10px) but as a borderless button. */
.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  top: 11px;
  right: 8px;
  padding: 2px 4px;
  line-height: 1;
  background: none;
  border: 0;
  color: #888888;
  cursor: pointer;
}

.password-toggle:hover {
  color: #1f1f1f;
}

.password-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Copyright strip, as the live page: centred, with a top rule. */
.account-page-footer {
  border-top: 1px solid #ededed;
  margin-top: 20px;
  padding-top: 12px;
  text-align: center;
  color: #6c757d;
}

/* Support reference: app / environment / build / ref. Small and muted, but
   selectable so it can be copied, and #6c757d on #f8f9fa clears WCAG AA.
   This is the one deliberate visual difference from the live .NET page -- it
   exists so a user reporting a problem can say which app, environment and
   build they are on, and quote a ref that is greppable in logs/hrpanel.log. */
.instance-stamp {
  margin-top: 6px;
  font-size: 12px;
  color: #6c757d;
  user-select: all;
  overflow-wrap: anywhere;
}

.instance-stamp .instance-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}
