/* A single login form, with app access directly beneath it. */
.login-form-page { display: flex; flex-direction: column; min-height: 100vh; background: #f4f6fb; }
.login-page { flex: 1; padding: 48px 20px 40px; background: radial-gradient(ellipse at 50% 0, rgba(230,57,70,.06), transparent 65%); }
.login-page .login-form-section { width: min(540px, 100%); margin: 0 auto; padding: 0; }
.login-card { overflow: hidden; border: 1px solid #e6eaf0; border-radius: 28px; background: #fff; box-shadow: 0 18px 60px rgba(20,22,26,.08); }
.login-page .login-panel { display: grid; gap: 24px; margin: 0; padding: 36px 40px 28px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.login-panel .section-heading { display: block; margin: 0 0 4px; text-align: center; }
.login-form-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border: 1px solid #f6d9dd; border-radius: 18px; background: #fff2f3; color: #c92b38; }
.login-form-icon svg { width: 28px; height: 28px; }
.login-page .login-eyebrow { display: block; width: auto; margin: 0 0 10px; padding: 0; border: 0; border-radius: 0; background: none; color: #c92b38; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-panel h1 { margin: 0 0 12px; color: #14161a; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.65rem, 4vw, 2rem); font-weight: 800; line-height: 1.25; }
.login-panel .section-heading p { max-width: 360px; margin: 0 auto; color: #5b6472; font-size: .93rem; line-height: 1.65; }
.login-panel .field { display: grid; gap: 9px; }
.login-panel label { color: #303846; font-size: .9rem; font-weight: 700; }
.login-panel input:not([type="hidden"]) { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid #dce1e9; border-radius: 12px; background: #fbfcfe; color: #14161a; font-size: 1rem; }
.login-panel input:focus { border-color: #c92b38; box-shadow: 0 0 0 4px rgba(201,43,56,.1); outline: none; background: #fff; }
.login-panel input[aria-invalid="true"] { border-color: #c92b38; }
.login-panel .password-field input { padding-right: 58px; }
.login-panel .password-toggle { right: 8px; width: 40px; height: 40px; border-radius: 10px; color: #5b6472; }
.login-panel .password-toggle svg { width: 20px; height: 20px; }
.login-panel .submit-row { display: block; margin: 0; }
.login-panel .submit-row .btn { display: flex; justify-content: center; gap: 12px; width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #e63946, #c92b38); color: #fff; box-shadow: 0 6px 16px rgba(201,43,56,.18); font-size: 1rem; cursor: pointer; }
.login-panel .submit-row .btn:hover { background: #c92b38; }
.login-help { padding-top: 2px; text-align: center; }
.login-help summary { display: inline-block; color: #5b6472; font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help p { margin: 14px 0 10px; color: #5b6472; font-size: .85rem; line-height: 1.65; }
.login-help a { color: #c92b38; font-size: .85rem; font-weight: 700; }
.login-app-access { padding: 0 40px 30px; }
.login-app-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: #5b6472; font-size: .8rem; text-align: center; }
.login-app-divider::before, .login-app-divider::after { content: ''; flex: 1; height: 1px; background: #e6eaf0; }
.login-app-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 12px 18px; border: 1px solid #dce1e9; border-radius: 12px; background: #f8fafc; color: #1d3557; font-size: .95rem; font-weight: 800; text-decoration: none; transition: background .18s, border-color .18s; }
.login-app-button:hover { background: #eef2f7; border-color: #98a8be; }
.login-app-button svg { flex-shrink: 0; width: 20px; height: 20px; }
.login-app-button svg:last-child { width: 17px; margin-left: auto; }
.login-app-button svg:first-child { margin-right: auto; }
.login-app-status { margin: 12px 0 0; color: #5b6472; font-size: .78rem; line-height: 1.5; text-align: center; }
.login-back-link { display: block; width: fit-content; margin: 24px auto 0; color: #5b6472; font-size: .85rem; text-decoration: none; }
.login-back-link:hover { color: #c92b38; text-decoration: underline; }
.login-page a:focus-visible, .login-page button:focus-visible, .login-page summary:focus-visible { outline: 3px solid #c92b38; outline-offset: 4px; }
.login-secondary-action { text-align: center; }
.login-inline-link { padding: 8px; border: 0; background: none; color: #5b6472; font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.login-panel .login-otp-input { text-align: center; letter-spacing: .3em; font-size: 1.4rem; }

@media (max-width: 600px) {
  .login-page { padding: 28px 16px 30px; }
  .login-card { border-radius: 22px; }
  .login-page .login-panel { padding: 28px 24px 24px; gap: 20px; }
  .login-app-access { padding: 0 24px 26px; }
  .login-app-divider { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-page *, .login-page *::before, .login-page *::after { transition: none; }
}
