/* MugSystems look for the Authelia sign-in page (Authelia 4.39 layout). Loaded by caddy-edge; purely cosmetic. */

/* techy background: dark by default, light version when the device is in light mode */
html, body { background: #0d0b26 url(/_mug/bg.svg) center / cover no-repeat fixed !important; min-height: 100vh; }
#root, #root > div { background: transparent !important; }

/* the card: the column inside each step (sign-in, 2FA code, ...) */
[id$="-stage"] > div {
  max-width: 400px !important; box-sizing: border-box; padding: 28px 28px 20px !important; border-radius: 18px;
  background: rgba(18, 16, 48, .80); border: 1px solid rgba(34, 211, 238, .22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); backdrop-filter: blur(6px);
}

/* bigger logo */
img[alt="Logo"] { width: 104px !important; height: auto !important; }

/* "MUGSYSTEMS" wordmark above the heading */
[id$="-stage"] h5::before {
  content: "MUGSYSTEMS"; display: block; font: 700 12px/1.8 system-ui, sans-serif; letter-spacing: .35em; color: #67e8f9; margin-bottom: 6px;
}

/* softer inputs, cyan checkbox, gradient button */
[id$="-stage"] input { border-radius: 8px; }
button[role="checkbox"][data-state="checked"] { background: #06b6d4 !important; border-color: #06b6d4 !important; }
#sign-in-button {
  background: linear-gradient(90deg, #06b6d4, #2563eb) !important; border-radius: 8px !important; min-height: 44px;
  font-weight: 600; letter-spacing: .06em; box-shadow: 0 6px 20px rgba(37, 99, 235, .35) !important;
}
#sign-in-button:hover { filter: brightness(1.1); }


/* ---------- 2FA code screen ---------- */
#logout-button, #methods-button { color: #67e8f9 !important; }
#methods-button { color: #8b98a8 !important; }
#logout-button:hover, #methods-button:hover { color: #e6edf3 !important; }

/* the inner box around each 2FA method: rounded, softer, less padding so the code boxes fit */
div:has(> [id$="-method"]) {
  border-radius: 14px !important; border-color: rgba(34, 211, 238, .18) !important;
  background: rgba(0, 0, 0, .18); padding: 20px 16px !important;
}

/* the 6 code boxes: visible, one row */
#otp-input > div { display: flex !important; flex-wrap: nowrap !important; justify-content: center; gap: 6px; }
#otp-input input {
  width: 42px !important; height: 52px !important; font-size: 22px !important; text-align: center;
  border: 1px solid rgba(103, 232, 249, .35) !important; border-radius: 8px !important;
  background: rgba(0, 0, 0, .3) !important; color: #fff !important;
}
#otp-input input:focus { border-color: #22d3ee !important; box-shadow: 0 0 0 3px rgba(34, 211, 238, .25) !important; outline: none; }

/* countdown timer in cyan */
[id$="-method"] svg circle { fill: rgba(34, 211, 238, .12) !important; stroke: #22d3ee !important; }
[id$="-method"] svg path { fill: #22d3ee !important; }

/* "Manage devices" link */
#register-link { color: #67e8f9 !important; }
