/* Login and password pages follow the Theme page colours (--app-* from app-theme-generated.css).
   The left brand panel is always a deep version of the theme's accent so white text stays readable. */
:root {
  --at-accent: var(--app-button, #0e7fc0);
  --at-accent-hover: var(--app-button-hover, #0b6aa1);
  --at-deep: #0b1d33;
  --at-deep: color-mix(in srgb, var(--app-button, #0e7fc0) 38%, #050b16);
  --at-mid: color-mix(in srgb, var(--app-button, #0e7fc0) 70%, #050b16);
  --at-page: var(--app-page, #f3f6fa);
  --at-font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}
html body, html body input, html body button, html body .btn-login, html body h1, html body h2, html body label { font-family: var(--at-font) !important; letter-spacing: 0 !important; }

/* ---- Default.aspx (employee / department / corporate / franchise) and AdminLogin.aspx ---- */
html body.auth-next {
  --auth-left-a: var(--at-deep) !important;
  --auth-left-b: var(--at-mid) !important;
  --auth-left-c: var(--at-accent) !important;
  --auth-accent: var(--at-accent) !important;
  --auth-accent-hover: var(--at-accent-hover) !important;
  --auth-accent-soft: color-mix(in srgb, var(--at-accent) 14%, transparent) !important;
  background: var(--at-page) !important;
}
html body.auth-next .brand-panel,
html body.auth-modern .brand-panel {
  background-color: var(--at-deep) !important;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0),
                    linear-gradient(155deg, var(--at-deep) 0%, var(--at-mid) 60%, var(--at-accent) 100%) !important;
  background-size: 32px 32px, 100% 100% !important;
  color: #ffffff !important;
}
html body.auth-next .brand-panel *:not(.dot):not(img) { color: inherit; }
html body.auth-next .brand-panel .eyebrow,
html body.auth-next .brand-panel .welcome-text,
html body.auth-next .brand-panel .brand-name span,
html body.auth-next .brand-panel .feature-list li,
html body.auth-next .brand-panel .auth-stat span { color: rgba(255,255,255,.86) !important; }
html body.auth-next .brand-panel .welcome-title,
html body.auth-next .brand-panel .brand-name b { color: #ffffff !important; }
html body.auth-next .brand-panel .welcome-title .accent { color: color-mix(in srgb, var(--at-accent) 35%, #ffffff) !important; }
html body.auth-next .brand-panel .dot { background: #ffffff !important; box-shadow: 0 0 0 5px rgba(255,255,255,.16) !important; }
html body.auth-next .logo-wrap img,
html body.auth-modern .logo-wrap img { background: #ffffff !important; border-radius: 10px !important; padding: 8px 12px !important; object-fit: contain !important; max-height: 64px; width: auto; }
html body.auth-next .btn-login,
html body.auth-modern .btn-login { background: var(--at-accent) !important; border-color: var(--at-accent) !important; color: #ffffff !important; box-shadow: 0 12px 24px color-mix(in srgb, var(--at-accent) 28%, transparent) !important; }
html body.auth-next .btn-login:hover,
html body.auth-modern .btn-login:hover { background: var(--at-accent-hover) !important; border-color: var(--at-accent-hover) !important; }
html body.auth-next .helper-link,
html body.auth-next .panel-title:before,
html body.auth-next a.helper-link { color: var(--at-accent) !important; }
html body.auth-next .panel-title:before { background: transparent !important; color: var(--at-accent) !important; }
html body.auth-next .form-control-modern:focus { border-color: var(--at-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-accent) 16%, transparent) !important; }
html body.auth-next .password-toggle { color: var(--at-accent) !important; }
html body.auth-next .form-panel { background: #ffffff !important; color: #142033 !important; }
html body.auth-next .panel-title { color: #142033 !important; }

/* ---- PasswordRecovery.aspx / ForgotPass.aspx / ChangePassword.aspx ---- */
html body { --primary: var(--at-accent); --primary-dark: var(--at-accent-hover); }
html body .recover-shell { background: var(--at-page) !important; }
html body .recover-brand {
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0/32px 32px,
              linear-gradient(155deg, var(--at-deep) 0%, var(--at-mid) 60%, var(--at-accent) 100%) !important;
  color: #ffffff !important;
}
html body .recover-brand img { background: #ffffff; border-radius: 10px; padding: 8px 12px; max-height: 64px; width: auto; object-fit: contain; }
html body .recover-brand h1 { font-weight: 800 !important; }
html body .recover-dot { background: #ffffff !important; box-shadow: 0 0 0 5px rgba(255,255,255,.16) !important; }
html body .btn-recover { background: var(--at-accent) !important; box-shadow: 0 12px 24px color-mix(in srgb, var(--at-accent) 26%, transparent) !important; }
html body .btn-recover:hover { background: var(--at-accent-hover) !important; }
html body .btn-recover.secondary { background: #e9eef5 !important; color: #1f2d3d !important; box-shadow: none !important; }
html body .back-link { color: var(--at-accent) !important; }
html body .form-control-modern:focus { border-color: var(--at-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-accent) 16%, transparent) !important; }
