/* Login page (layouts/auth.php + site/login.php) */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html, body { margin: 0; height: 100%; background: #f4f5f8; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #171a2b; }
/* Bootstrap is preloaded app-wide by YiiBooster; neutralise the rules that leak into this page */
body { font-size: 16px; line-height: normal; }
* { box-sizing: border-box; }
a { color: #1c2a8f; text-decoration: none; }
a:hover, a:focus { color: #e3141c; text-decoration: none; }
input::placeholder { color: #9aa0b4; }

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

/* Brand panel */
.auth-panel { position: relative; overflow: hidden; background: #17237e; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.auth-panel-circle-lg { position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%; background: #1f2e9c; }
.auth-panel-circle-sm { position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: #e3141c; }
.auth-panel-eyebrow { position: relative; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #c9cef0; }
.auth-panel-body { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.auth-panel-title { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: pretty; }
.auth-panel-text { margin: 0; font-size: 16px; line-height: 1.6; color: #d6daf5; text-wrap: pretty; }
.auth-panel-footer { position: relative; font-size: 13px; color: #c9cef0; }

/* Form side */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.auth-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 28px; }
/* logoypm.png is 487x480 with the visible mark at rows 126-301; crop exactly to it at 200px wide */
.auth-logo { width: 200px; height: 72px; overflow: hidden; }
.auth-logo img { display: block; width: 200px; margin-top: -51.75px; }
.auth-heading { display: flex; flex-direction: column; gap: 6px; }
.auth-heading h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.auth-heading p { margin: 0; font-size: 14px; color: #5b6178; }

.auth-error { padding: 12px 14px; border-radius: 8px; background: #fdecec; color: #a30f15; font-size: 14px; }
.auth-error p { margin: 0; }
.auth-error p + p { margin-top: 4px; }

.auth-fields { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; margin: 0; max-width: none; font-weight: 400; }
.auth-label { font-size: 14px; font-weight: 600; }
.auth-required { color: #e3141c; }
.auth-input { height: 48px; padding: 0 14px; border: 1px solid #d5d8e3; border-radius: 8px; font: inherit; font-size: 15px; color: #171a2b; background: #fff; outline: none; }
.auth-input:focus { border-color: #1c2a8f; box-shadow: 0 0 0 3px rgba(28, 42, 143, .15); }
.auth-password { position: relative; display: flex; }
.auth-password .auth-input { flex: 1; min-width: 0; padding-right: 48px; }
.auth-toggle { position: absolute; right: 6px; top: 6px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #5b6178; cursor: pointer; }
.auth-toggle:hover, .auth-toggle:focus-visible { background: #eef0fa; color: #1c2a8f; outline: none; }
.auth-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Icon reflects the current state: eye-off while hidden, eye while visible */
.auth-toggle .auth-icon-eye,
.auth-toggle[aria-pressed="true"] .auth-icon-eye-off { display: none; }
.auth-toggle[aria-pressed="true"] .auth-icon-eye { display: block; }

.auth-actions { display: flex; flex-direction: column; gap: 14px; }
.auth-submit { height: 48px; border: 0; border-radius: 8px; background: #1c2a8f; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.auth-submit:hover { background: #15206f; }
.auth-submit:disabled { cursor: wait; opacity: .85; }
.auth-home { align-self: center; font-size: 14px; font-weight: 500; }
.auth-help { margin: 0; text-align: center; font-size: 13px; color: #8a91a8; }

/* Narrow screens: form only, brand panel hidden */
@media (max-width: 839px) {
  .auth { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
}
