.login-page { background: var(--paper); }
.login-page #login-view { width: 100%; max-width: 1600px; margin: 0 auto; padding: 24px; }
.signin-shell { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 760px; }
.signin-card { align-self: center; width: min(100%, 572px); margin: 0 auto; padding: 52px 48px; }
.signin-heading { margin-bottom: 38px; }
.signin-heading h1 { margin: 0; padding-bottom: .1em; color: var(--forest-deep); background: none; -webkit-text-fill-color: currentColor; font-size: clamp(1.9rem, 2.7vw, 2.5rem); font-weight: 800; line-height: 1.3; letter-spacing: -.05em; overflow: visible; }
.signin-heading p { margin: 10px 0 0; color: #596b61; font-size: 1rem; line-height: 1.6; }
.login-page .field > span, .signin-password-heading label { font-size: .875rem; font-weight: 700; }
.login-page .field input, .signin-password input { width: 100%; min-width: 0; min-height: 54px; padding: 15px 16px; border: 1px solid #cbd8cf; border-radius: 12px; color: var(--text); background: #fff; font-size: max(16px, 1rem); }
.login-page input::placeholder { color: #728076; opacity: 1; }
.login-page input:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
#login-form .field { margin-bottom: 22px; }
.signin-password-heading { margin-bottom: 8px; }
#login-form .signin-forgot { display: block; min-height: 44px; margin: 4px 0 0 auto; padding: 8px 0; font-size: .875rem !important; font-weight: 700; text-underline-offset: 4px; }
.signin-forgot:hover { text-decoration: underline; }
.signin-password { display: flex; align-items: center; gap: 6px; border: 1px solid #cbd8cf; border-radius: 12px; background: #fff; }
.signin-password input { flex: 1; width: 0; border: 0; background: transparent; }
.password-toggle { align-self: stretch; min-width: 64px; padding: 0 14px; border: 0; border-radius: 10px; color: var(--forest); background: transparent; font-size: .8rem; font-weight: 800; cursor: pointer; }
.password-toggle:hover { background: #edf5ef; }
.signin-remember { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; color: #596b61; font-size: .8rem; font-weight: 500; cursor: pointer; }
.signin-remember input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--forest); }
#login-form .form-status { min-height: 0; margin: 12px 0 0; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
#login-form .form-status:empty { margin: 0; }
#login-submit { position: relative; justify-content: center; margin-top: 14px; box-shadow: none; }
#login-submit .ui-chevron { position: absolute; right: 20px; font-size: 1.5rem; line-height: 1; }
.login-page .form-status:not(:empty) { color: #a22f40; }
.login-page .form-status.is-working, .login-page .form-status.is-success { color: var(--forest); }
.signin-card .button { min-height: 54px; padding: 15px 18px; border-radius: 12px; font-size: .9375rem; text-decoration: none; }
.signin-card .button-primary:disabled { border-color: #dbe4dd; color: #65756a; background: #e5ece6; opacity: 1; box-shadow: none; cursor: not-allowed; }
.signin-divider { display: flex; align-items: center; gap: 18px; margin: 24px 0; color: #67756c; font-size: .8rem; }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin-card .microsoft-button { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; border: 1px solid #d1dcd4; color: #596b61; background: transparent; opacity: 1; cursor: not-allowed; }
.microsoft-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.microsoft-button small { padding: 4px 7px; border-radius: 6px; color: #53675a; background: #e8eee7; font-size: .65rem; white-space: nowrap; }
.signin-hint { margin: 12px 0 0; color: #65756a; font-size: .75rem; line-height: 1.65; text-align: center; }
.signin-audience { margin: 28px 0 0; color: #596b61; font-size: .75rem; line-height: 1.6; text-align: center; }
.signin-story { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; min-width: 0; padding: 48px 32px; border: 1px solid #d6e8dd; border-radius: 28px; background: #e7f1e9; text-align: center; }
.signin-illustration { display: block; width: min(100%, 520px); height: auto; object-fit: contain; }
.signin-story-copy { max-width: 440px; }
.signin-story h2 { margin: 0; color: var(--forest-deep); font-size: clamp(1.8rem, 2.5vw, 2.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.signin-story p { margin: 18px 0 0; color: #476052; font-size: .9375rem; line-height: 1.75; }
.signin-tour { display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; min-height: 44px; margin: 8px auto 0; padding: 8px 0; color: var(--forest-deep); font-size: .875rem; font-weight: 700; text-decoration: none; text-underline-offset: 4px; }
.signin-tour:hover { text-decoration: underline; }
.signin-tour .ui-chevron { font-size: 1.25rem; }
.signin-notice { margin: 20px 0 0; padding: 14px 16px; border: 1px solid #d1e5d9; border-radius: 10px; color: #365b49; background: #edf5ef; font-size: .8rem; line-height: 1.6; }
.signin-shell a:focus-visible, .signin-shell button:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
@media (max-width: 1100px) {
  .signin-card { padding: 40px 32px; }
  .signin-story { padding: 40px 24px; }
  .signin-story-break { display: none; }
}
@media (max-width: 850px) {
  .login-page #login-view { padding: 32px 20px 48px; }
  .signin-shell { grid-template-columns: 1fr; min-height: 0; }
  .signin-card { max-width: 512px; padding: 24px 20px; }
  .signin-heading { margin-bottom: 32px; }
  .signin-story { display: none; }
}
@media (max-width: 420px) {
  .login-page #login-view { padding: 24px 20px 40px; }
  .signin-card { padding: 16px 0; }
  .signin-card .microsoft-button { font-size: .875rem; }
}
