/* AYTTECH design tokens. Phase A intentionally targets login only. */
:root {
  --ay-primary: #174c48;
  --ay-secondary: #286b65;
  --ay-background: #f4f7fb;
  --ay-surface: #fff;
  --ay-border: #d8e1e6;
  --ay-text: #152d35;
  --ay-muted: #52666c;
  --ay-success: #217346;
  --ay-warning: #8a5700;
  --ay-error: #b42332;
  --ay-hover: #103e3a;
  --ay-focus: #287eaa;
  --ay-shadow: 0 12px 40px rgb(21 45 53 / 6%);
  --ay-radius: 12px;
  --ay-space-1: 4px;
  --ay-space-2: 8px;
  --ay-space-3: 12px;
  --ay-space-4: 16px;
  --ay-space-6: 24px;
  --ay-space-8: 32px;
  --ay-space-12: 48px;
  --ay-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.task-login {
  background: var(--ay-background);
  color: var(--ay-text);
  font-family: var(--ay-font);
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
}
body.task-login #layout {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  background: transparent;
}
body.task-login #layout-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--ay-space-8) var(--ay-space-4);
  overflow: visible;
  background: transparent;
}
.task-login .ayttech-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  background: var(--ay-surface);
  border: 1px solid var(--ay-border);
  border-radius: 20px;
  box-shadow: var(--ay-shadow);
  text-align: left;
}
body.task-login #logo {
  position: static;
  display: block;
  width: 205px;
  height: auto;
  max-height: none;
  margin: 0 0 36px;
}
.ayttech-eyebrow {
  color: var(--ay-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.ayttech-heading h1 { font-size: 30px; font-weight: 650; margin: 8px 0; letter-spacing: -.7px; }
.ayttech-heading p { color: var(--ay-muted); font-size: 14px; margin: 0 0 28px; }
body.task-login #login-form { position: static; width: 100%; max-width: none; margin: 0; text-align: left; }
body.task-login #login-form table,
body.task-login #login-form tbody,
body.task-login #login-form tr,
body.task-login #login-form td { display: block; width: 100%; min-width: 0; }
body.task-login #login-form tr { margin: 0 0 20px; }
body.task-login #login-form td.title { display: block !important; padding: 0; }
body.task-login #login-form label { font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--ay-text); }
body.task-login #login-form td.input { position: relative; padding: 0; }
body.task-login #login-form .input-group-prepend { display: none; }
body.task-login #login-form .form-control,
body.task-login #login-form .custom-select {
  border: 1px solid var(--ay-border);
  border-radius: var(--ay-radius) !important;
  width: 100%;
  height: 50px;
  min-width: 0;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ay-text);
  background: var(--ay-surface);
  box-shadow: none;
}
body.task-login #login-form #rcmloginpwd { padding-right: 88px; }
body.task-login #login-form input::placeholder { color: var(--ay-muted); font-size: 14px; }
body.task-login #login-form .form-control:focus {
  outline: 2px solid var(--ay-focus);
  outline-offset: 2px;
  border-color: var(--ay-focus);
}
.task-login .ayttech-password-toggle {
  position: absolute; right: 5px; top: 3px; z-index: 5;
  min-height: 44px; min-width: 76px;
  padding: 8px; background: transparent; border: 0;
  border-radius: 8px; color: var(--ay-primary); font-size: 12px; font-weight: 600;
}
body.task-login #rcmloginsubmit {
  background: var(--ay-primary); color: white; border: 1px solid var(--ay-primary);
  border-radius: var(--ay-radius); min-height: 50px;
  font-size: 15px; font-weight: 650; text-transform: none !important;
  letter-spacing: 0; box-shadow: 0 2px 3px rgb(21 45 53 / 7%);
}
body.task-login #rcmloginsubmit:hover { background: var(--ay-hover); }
body.task-login #rcmloginsubmit:disabled { opacity: .65; cursor: wait; }
body.task-login #login-form .formbuttons { margin: 26px 0 0; }
body.task-login #login-footer { margin-top: 24px; color: var(--ay-muted); font-size: 12px; text-align: center; overflow-wrap: anywhere; }
body.task-login button:focus-visible,
body.task-login a:focus-visible { outline: 2px solid var(--ay-focus); outline-offset: 3px; }
body.task-login #messagestack {
  position: fixed; top: 16px; right: 16px; bottom: auto;
  max-width: min(420px, calc(100vw - 32px)); z-index: 1000;
}
body.task-login #messagestack .alert { border-radius: var(--ay-radius); box-shadow: var(--ay-shadow); overflow-wrap: anywhere; }
body.task-login #messagestack .alert-danger { color: var(--ay-error); background: #fff3f4; border-color: #f0c6cb; }
@media (max-width: 479px) {
  body.task-login #layout-content { padding: 20px 12px; align-items: center; }
  .task-login .ayttech-card { padding: 28px 20px; border-radius: 16px; }
  body.task-login #logo { width: 184px; margin-bottom: 28px; }
  .ayttech-heading h1 { font-size: 28px; }
}
@media (max-height: 600px) {
  body.task-login #layout-content { align-items: flex-start; }
  .task-login .ayttech-card { margin: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.task-login * { scroll-behavior: auto !important; transition: none !important; }
}
