/* Sign-in page — black · red · white. Loads after dashboard.css (tokens, buttons, icons). */
.login-page { min-height: 100dvh; display: block; padding: 0; background: #fff; color: #0b0b0b; }
.login-page .login-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); width: 100%; max-width: none; min-height: 100dvh; margin: 0; padding: 0; }

/* Brand panel ---------------------------------------------------------- */
.login-brand-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 44px 56px; overflow: hidden; background: radial-gradient(75% 55% at 90% 108%, rgba(220, 31, 43, .6), transparent 66%), radial-gradient(55% 38% at 0% 0%, rgba(220, 31, 43, .2), transparent 62%), #090909; color: #fff; }
.login-brand-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000 20%, transparent 78%); mask-image: radial-gradient(80% 70% at 30% 40%, #000 20%, transparent 78%); }
.login-brand-panel::after { content: ''; position: absolute; z-index: -1; right: -190px; bottom: -190px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(255, 95, 105, .55); box-shadow: 0 0 0 52px rgba(220, 31, 43, .06), 0 0 0 53px rgba(255, 95, 105, .28), 0 0 0 112px rgba(220, 31, 43, .035), 0 0 0 113px rgba(255, 95, 105, .16); pointer-events: none; }
.login-logo { align-self: flex-start; width: 236px; max-width: 100%; padding: 14px 18px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -18px rgba(220, 31, 43, .6); }
.login-logo img { display: block; width: 100%; height: auto; }
.login-intro { max-width: 500px; margin: auto 0; padding: 48px 0 40px; }
.login-workspace-label { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.login-workspace-label > .material-symbols-outlined { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 19px; }
.login-eyebrow { margin: 0; color: #ededed; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.login-intro h2 { margin: 28px 0 0; font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.login-intro h2 span { color: #ff4955; }
.login-intro > p { max-width: 420px; margin: 22px 0 0; color: #acacac; font-size: 16px; line-height: 1.7; }
.login-workflow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; }
.login-workflow > span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 11px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; color: #f2f2f2; font-size: 13px; font-weight: 600; }
.login-workflow > span + span { position: relative; margin-left: 14px; }
.login-workflow > span + span::before { content: ''; position: absolute; left: -15px; top: 50%; width: 14px; height: 1px; background: rgba(255, 255, 255, .3); }
.login-workflow .material-symbols-outlined { color: #ff5a63; font-size: 18px; }
.login-brand-footer { display: flex; align-items: center; gap: 9px; color: #808080; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.login-brand-footer::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--primary); transform: rotate(45deg); }

/* Form panel ----------------------------------------------------------- */
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 7vw, 96px); background: #fff; }
.login-form-panel > * { width: 100%; max-width: 400px; margin-inline: auto; }
.login-form-heading .eyebrow { margin: 0 0 14px; }
.login-form-heading h1 { margin: 0 0 12px; font-size: 42px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.login-form-heading > p:last-child { margin: 0 0 34px; color: #575757; font-size: 15px; line-height: 1.6; }
#login-form label { display: block; margin: 20px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.login-field { position: relative; }
.login-field > .material-symbols-outlined { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #888888; font-size: 21px; pointer-events: none; transition: color .15s; }
.login-field:focus-within > .material-symbols-outlined { color: var(--primary); }
#login-form input { width: 100%; height: 54px; padding: 0 16px 0 48px; background: #f6f6f6; border: 1px solid #e5e5e5; border-radius: 14px; color: #0b0b0b; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
#login-form input::placeholder { color: #9d9d9d; }
#login-form input:hover { border-color: #cbcbcb; }
#login-form input:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(220, 31, 43, .16); }
#login-form .password-field input { padding-right: 52px; }
.password-field button { position: absolute; right: 8px; top: 50%; width: 38px; height: 38px; transform: translateY(-50%); color: #888888; }
.password-field button:hover { background: #ededed; color: #0b0b0b; }
.login-submit { justify-content: space-between; width: 100%; height: 54px; margin-top: 28px; padding: 0 12px 0 24px; font-size: 15px; }
.login-submit > .material-symbols-outlined { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 19px; transition: transform .2s; }
.login-submit:hover:not(:disabled) > .material-symbols-outlined { transform: translateX(3px); }
.login-error { margin: 18px 0 0; padding: 12px 14px; background: var(--primary-soft); border: 1px solid var(--primary-line); border-left: 4px solid var(--primary); border-radius: 12px; color: var(--primary-deep); font-size: 13px; font-weight: 500; line-height: 1.6; }
.login-help { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: #888888; font-size: 12px; }
.login-help .material-symbols-outlined { color: var(--primary); font-size: 16px; }

@media (max-width: 1000px) {
  .login-brand-panel { padding: 36px 36px; }
  .login-intro h2 { font-size: 36px; }
}
@media (max-width: 860px) {
  .login-page .login-layout { grid-template-columns: 1fr; min-height: 0; }
  .login-brand-panel { align-items: flex-start; padding: 26px 24px 30px; }
  .login-brand-panel::after { right: -230px; bottom: -250px; }
  .login-logo { width: 190px; padding: 11px 14px; }
  .login-intro, .login-brand-footer { display: none; }
  .login-form-panel { padding: 34px 24px 40px; }
  .login-form-heading h1 { font-size: 34px; }
}
