/* Cybox public login: the same cream, green and typography as the academy. */
.auth-login-page { min-height: 100svh; display: flex; flex-direction: column; }
.auth-login-page *, .auth-login-page *::before, .auth-login-page *::after { box-sizing: border-box; }
.auth-login-page [hidden] { display: none !important; }
.auth-login-page a { color: var(--auth-ink); }
.auth-login-page button, .auth-login-page input { font: inherit; }
.auth-login-page button, .auth-login-page a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.auth-login-page button { cursor: pointer; color: var(--auth-ink); }
.auth-login-page :is(a,button,input):focus-visible { outline: 3px solid #496b3e; outline-offset: 4px; }
.auth-login-page svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.login-skip { position: fixed; left: 20px; top: 10px; z-index: 20; padding: 12px 20px; background: white; border-radius: 99px; transform: translateY(-160%); }
.login-skip:focus { transform: none; }
.login-header { width: min(1320px, calc(100% - 80px)); margin: 30px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.login-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.login-brand img { width: 44px; height: 44px; border-radius: 13px; }
.login-brand > span { font-size: 24px; font-weight: 780; line-height: 1.05; letter-spacing: -.06em; }
.login-brand > span > span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .01em; font-weight: 700; }
.login-back { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; text-decoration: none; }
.login-back svg { width: 21px; height: 21px; }
.login-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.login-layout { width: min(1280px, calc(100% - 80px)); flex: 1; margin: 38px auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.login-visual { position: relative; padding: clamp(30px, 3.3vw, 46px) 32px 10px; border: 1px solid #ecebe2; border-radius: 38px; background: radial-gradient(ellipse at 0 10%, #fff1d4 0, transparent 57%), radial-gradient(ellipse at 90% 87%, #e9e1f4 0, transparent 57%), linear-gradient(130deg, #f8f6ec, #edf5ef 58%, #eeeaf5); overflow: hidden; }
.login-visual-copy { position: relative; z-index: 2; padding-inline: 3px; }
.login-eyebrow { margin: 0 0 17px; font-size: 13px; line-height: 1.45; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--auth-muted); }
.login-visual h2 { font: 700 clamp(25px, 2.7vw, 37px)/1.2 var(--auth-heading); letter-spacing: -.04em; margin: 0; }
.login-visual h2 span { color: #41663e; }
.login-visual-copy > p:last-child { max-width: 400px; margin: 20px 0 0; color: var(--auth-muted); font-size: 16px; font-weight: 450; line-height: 1.65; }
.login-scene { position: relative; margin: 18px -32px 0; aspect-ratio: 1.5; isolation: isolate; }
.login-scene-image { position: absolute; width: 112%; max-width: none; height: 100%; inset: 0 auto auto -6%; object-fit: contain; }

.login-scene.is-animated .login-scene-image { animation: login-scene-float 7s ease-in-out infinite; }
.login-scene.is-away * { animation-play-state: paused !important; }
@keyframes login-scene-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.login-form-panel { padding: 20px 0; width: 100%; max-width: 420px; justify-self: center; }
.login-form-heading { margin-bottom: 32px; }
.login-form-heading .login-eyebrow { margin-bottom: 16px; }
.login-form-heading h1 { margin: 0; font: 700 clamp(30px, 3vw, 42px)/1.15 var(--auth-heading); letter-spacing: -.05em; text-wrap: balance; }
.login-form-heading > p:last-child { margin: 19px 0 0; font-size: 16px; font-weight: 450; line-height: 1.65; color: var(--auth-muted); }
.login-form-row { margin-bottom: 20px; }
.login-form-row > label { display: block; margin-bottom: 9px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.login-form-row input { display: block; width: 100%; height: 58px; padding: 15px 18px; border: 1px solid #cfd5c9; border-radius: 17px; background: #fffefa; color: var(--auth-ink); font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.login-form-row input::placeholder { color: #72796e; opacity: 1; }
.login-form-row input:focus { outline: 0; border-color: #758f66; box-shadow: 0 0 0 3px #7caa6133; }
.login-form-row input[aria-invalid="true"] { border-color: #b45743; background: #fff9f6; }
.login-form-row input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #b4574322; }
.login-password-wrap { position: relative; }
.login-password-wrap input { padding-right: 60px; }
.login-password-toggle { position: absolute; inset: 7px 7px auto auto; border: 0; background: transparent; display: grid; place-items: center; height: 44px; width: 44px; border-radius: 13px; color: #4f5b49; }
.login-password-toggle:hover { background: var(--auth-sage); }
.login-password-toggle svg { width: 22px; height: 22px; }
.login-password-toggle[aria-pressed="true"] .login-eye-slash { display: none; }
.login-form-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 5px 0 25px; font-size: 14px; line-height: 1.45; }
.login-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.login-remember input { accent-color: #446b39; width: 18px; height: 18px; margin: 0; cursor: pointer; flex-shrink: 0; }
.login-text-link { text-decoration: underline; text-decoration-color: #a6aea0; text-underline-offset: 4px; text-decoration-thickness: 1px; font-weight: 600; }
.login-text-link:hover { text-decoration-color: currentColor; }
.login-submit { width: 100%; min-height: 58px; padding: 15px 25px; display: flex; align-items: center; justify-content: center; gap: 13px; font-size: 16px; font-weight: 750; }
.login-submit svg { width: 21px; height: 21px; }
.login-separator { display: flex; align-items: center; gap: 18px; margin: 22px 0; color: var(--auth-muted); font-size: 14px; }
.login-separator::before, .login-separator::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }
.login-google { display: flex; justify-content: center; min-height: 44px; }
.login-google .google-button-frame { max-width: 100%; }
.login-google .g_id_signin { max-width: 100%; }
.login-register { margin: 27px 0 0; text-align: center; font-size: 15px; line-height: 1.7; color: var(--auth-muted); }
.login-register a { margin-left: 3px; }
.login-notice { margin: 0 0 22px; border: 1px solid; border-radius: 15px; padding: 14px 17px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.login-notice-error { color: #853b2c; background: #fff1e9; border-color: #e9c7b8; }
.login-notice-success { color: #375b31; background: #eaf3e3; border-color: #c6dbbc; }
.login-footer { width: min(1320px, calc(100% - 80px)); margin: 0 auto; padding: 0 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; line-height: 1.6; color: var(--auth-muted); }
.login-footer a { font-weight: 450; }
@media (min-width: 1600px) { .login-layout { margin-block: 52px; } }
@media (max-width: 1040px) { .login-layout { gap: 40px; grid-template-columns: 1fr 1fr; } .login-visual { padding-inline: 25px; } .login-scene { margin-inline: -25px; }    }
/* On phones the illustration becomes part of the introduction. Its reserved
   space ends before the first field, so artwork never competes with the form. */
@media (max-width: 1023px) {
  .login-header { width: min(540px, calc(100% - 40px)); margin-top: 22px; }
  .login-layout { position: relative; display: block; width: min(420px, calc(100% - 40px)); flex: 0 0 auto; margin: clamp(28px, 5vh, 48px) auto 32px; }
  .login-form-panel { padding: 0; max-width: none; }
  .login-form-heading { min-height: 126px; margin-bottom: 22px; padding: 14px 140px 0 0; }
  .login-form-heading .login-eyebrow { margin-bottom: 12px; font-size: 11px; letter-spacing: .06em; }
  .login-form-heading h1 { font-size: 31px; line-height: 1.17; text-wrap: initial; }
  .login-form-heading > p:last-child { display: none; }
  .login-visual { position: absolute; top: 0; right: -4px; width: 132px; height: 126px; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
  .login-visual-copy { display: none; }
  .login-scene { width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
  .login-scene-image { inset: 0 auto auto -13%; width: 126%; height: 100%; }

  .login-form-row { margin-bottom: 18px; }
  .login-form-row input { height: 54px; padding: 14px 16px; }
  .login-form-row > label { margin-bottom: 8px; }
  .login-password-wrap input { padding-right: 58px; }
  .login-password-toggle { top: 5px; }
  .login-form-options { margin: 2px 0 22px; }
  .login-separator { margin: 20px 0; }
  .login-register { margin-top: 23px; }
  .login-footer { width: calc(100% - 40px); margin-top: auto; justify-content: center; text-align: center; flex-wrap: wrap; gap: 6px; padding: 0 0 20px; }
}
@media (max-width: 440px) {
  .login-header { width: calc(100% - 36px); margin-top: 18px; gap: 12px; }
  .login-brand { gap: 7px; }
  .login-brand img { width: 36px; height: 36px; border-radius: 10px; }
  .login-brand > span { font-size: 21px; }
  .login-brand > span > span { font-size: 11px; margin-top: 3px; }
  .login-back { font-size: 12px; gap: 4px; min-height: 40px; }
  .login-back svg { width: 18px; height: 18px; }
  .login-layout { width: calc(100% - 40px); margin-top: 26px; }
  .login-form-heading { min-height: 122px; padding-right: 124px; padding-top: 10px; margin-bottom: 18px; }
  .login-form-heading h1 { font-size: 29px; }
  .login-form-heading .login-eyebrow { margin-bottom: 11px; font-size: 10px; }
  .login-visual { width: 120px; height: 120px; }
  .login-form-row { margin-bottom: 17px; }
  .login-form-row > label { font-size: 14px; }
  .login-form-options { font-size: 12px; gap: 8px; }
  .login-remember { gap: 6px; }
  .login-remember input { width: 17px; height: 17px; }
  .login-register { font-size: 14px; }
  .login-footer { font-size: 12px; }
}
@media (max-width: 359px) {
  .login-layout { width: calc(100% - 36px); margin-top: 20px; }
  .login-form-heading { min-height: 108px; padding-right: 111px; padding-top: 8px; margin-bottom: 15px; }
  .login-form-heading h1 { font-size: 25px; }
  .login-visual { width: 106px; height: 108px; right: -2px; }
  .login-form-row { margin-bottom: 15px; }
  .login-form-row input { height: 52px; }
  .login-password-toggle { top: 4px; }
  .login-separator { margin: 18px 0; }
  .login-register { margin-top: 20px; }
}
/* Small landscape windows and the mobile keyboard keep the fields prominent. */
@media (max-width: 920px) and (max-height: 520px) {
  .login-header { margin-top: 12px; }
  .login-layout { display: block; width: min(420px, calc(100% - 40px)); flex: 0 0 auto; margin-block: 16px 24px; }
  .login-form-panel { max-width: none; padding: 0; }
  .login-visual { display: none; }
  .login-form-heading { min-height: 0; padding: 0; margin-bottom: 16px; }
  .login-form-heading .login-eyebrow { display: none; }
  .login-form-heading h1 { font-size: 27px; }
  .login-form-heading > p:last-child { display: none; }
  .login-form-row { margin-bottom: 12px; }
  .login-form-row > label { margin-bottom: 6px; }
  .login-form-row input { height: 50px; padding-block: 12px; }
  .login-password-toggle { top: 3px; }
  .login-form-options { margin: 2px 0 16px; }
}
/* The floating card needs the artwork above its surface, inside its padding. */
@media (max-width: 1023px) {
  .auth-login-page .login-visual { top: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 32px); z-index: 1; }
  .auth-login-page .login-scene-image { inset: 0; width: 100%; height: 100%; }
}
@media (max-width: 359px) and (min-height: 521px) {
  .auth-login-page .login-form-heading { padding-right: 84px; }
  .auth-login-page .login-visual { width: 80px; }
}
@media (prefers-reduced-motion: reduce) { .auth-login-page *, .auth-login-page *::before, .auth-login-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
