/* Dr. Sunny HR login (sunny_custom_login 15.0.2.0.0). Loaded ONLY by the login shell (views/login_templates.xml):
   never in the backend or the website bundles. Self-contained: no CDN, no web font (Inter when installed, else the
   system font: SF Pro on iPhone / Mac, Segoe UI on Windows, Roboto on Android).
   Mobile first (the screenshot is an iPhone): a white full-height page with a 16px gutter; from 640px a centred
   white card on a soft brand background, the four logos in a wider strip under it. Everything is scoped under .sk-*; the compatibility block at the end styles
   Odoo's own pages shown in the shell (two-factor code, sign-up). */

:root {
  --sk-navy: #00148d;
  --sk-blue: #0064e0;
  --sk-blue-2: #1877f2;
  /* The primary button: the staff portal's Meta blue gradient. The screenshot's green instead = one line:
     --sk-primary: linear-gradient(135deg, #15803d 0%, #16a34a 55%, #22c55e 100%); --sk-primary-shadow: rgb(22 163 74 / .45); */
  --sk-primary: linear-gradient(135deg, #00148d 0%, #0064e0 58%, #1877f2 100%);
  --sk-primary-shadow: rgb(0 100 224 / .42);
  --sk-ring: rgb(0 100 224 / .18);    /* the soft halo of a focused input only (its border is the real cue) */
  --sk-focus: #0064e0;                 /* keyboard focus of buttons and links: 5:1 on white (WCAG 1.4.11) */

  --sk-text: #0f172a;
  --sk-text-2: #334155;
  --sk-muted: #64748b;
  --sk-faint: #94a3b8;                 /* decoration only (never text) */
  --sk-line: #e2e8f0;
  --sk-field: #f1f5f9;
  --sk-field-hover: #eaf0f6;
  --sk-surface: #ffffff;
  --sk-page: #f6f8fc;

  --sk-error-bg: #fff1f2;
  --sk-error-line: #fecdd3;
  --sk-error-text: #9f1239;
  --sk-info-bg: #eff6ff;
  --sk-info-line: #bfdbfe;
  --sk-info-text: #1e3a8a;
  --sk-ok-bg: #ecfdf5;
  --sk-ok-line: #a7f3d0;
  --sk-ok-text: #065f46;

  --sk-radius-field: 14px;
  --sk-radius-card: 28px;
  --sk-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sk-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------------------------ base */
html.sk-html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: light; }
body.sk-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sk-surface);
  color: var(--sk-text);
  font-family: var(--sk-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.sk-body *, .sk-body *::before, .sk-body *::after { box-sizing: border-box; }
.sk-body [hidden] { display: none !important; }
.sk-body button, .sk-body input { font: inherit; color: inherit; }
.sk-body a { color: var(--sk-blue); text-decoration: none; }
.sk-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sk-body :focus-visible { outline: 2px solid var(--sk-focus); outline-offset: 3px; }
.sk-body .sk-btn-primary:focus-visible { outline: 2px solid var(--sk-navy); outline-offset: 3px; }
.sk-body .sk-eye:focus-visible { outline-offset: -2px; }
.sk-icon { width: 20px; height: 20px; display: block; flex: none; }
.sk-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sk-center { text-align: center; }
.sk-muted { color: var(--sk-muted); margin: 0; }

/* ------------------------------------------------------------------ shell */
.sk-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.sk-card {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--sk-surface);
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           0 max(16px, env(safe-area-inset-left));
}
.sk-brand { display: flex; justify-content: center; padding: 28px 0 34px; }
.sk-wordmark { display: block; width: 269px; max-width: 100%; height: auto; user-select: none; } /* 1.6 x 168 (Mark, 10-09) */
.sk-slot { width: 100%; }

/* The four brands: ONE line at every width (4 equal columns, never wraps). Phones: the bottom of the white page
   (320px screen = about 66 x 19px each); computers: a strip under the card, about 136 x 39px each. */
.sk-brands {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom))
           max(16px, env(safe-area-inset-left));
  background: var(--sk-surface);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 2.2vw, 14px);
  align-items: center;
}
.sk-brands img { display: block; width: 100%; height: auto; min-width: 0; user-select: none; }

/* Short phones (iPhone SE: 667px): a tighter top, so the form and Face ID fit on the first screen. */
@media (max-width: 639px) and (max-height: 700px) {
  .sk-brand { padding: 12px 0 22px; }
  .sk-head { margin-bottom: 16px; }
  .sk-brands { padding-top: 24px; }
}

@media (min-width: 640px) {
  body.sk-body {
    background:
      radial-gradient(1100px 620px at 12% -8%, #e6edff 0%, rgb(230 237 255 / 0) 60%),
      radial-gradient(900px 560px at 108% 112%, #e9f2ff 0%, rgb(233 242 255 / 0) 58%),
      var(--sk-page);
  }
  .sk-shell { justify-content: center; align-items: center; padding: 48px 16px; }
  .sk-card {
    flex: 0 0 auto;
    max-width: 440px;
    padding: 40px 40px 32px;
    border-radius: var(--sk-radius-card);
    border: 1px solid rgb(226 232 240 / .9);
    box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 24px 56px -16px rgb(0 20 141 / .18);
  }
  .sk-brand { padding: 4px 0 30px; }
  .sk-brands { flex: 0 0 auto; max-width: 600px; margin: 28px auto 0; padding: 0; gap: 18px; background: transparent; }
}

/* ------------------------------------------------------------------ headings and text */
.sk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
/* Page titles: one size on every page, a step above the 15px text under them (Mark, 10-09: "very big"). */
.sk-title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--sk-text); }
.sk-welcome { margin: 0; color: var(--sk-muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.sk-lead { margin: -6px 0 20px; color: var(--sk-text-2); font-size: 15px; }
.sk-fine { margin: 14px 0 0; color: var(--sk-muted); font-size: 13px; text-align: center; }
.sk-after { margin: 18px 0 0; }
.sk-empty { margin: 0 0 20px; color: var(--sk-muted); }

/* ------------------------------------------------------------------ alerts and notices */
.sk-alert {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 18px; padding: 12px 14px;
  border-radius: var(--sk-radius-field); border: 1px solid;
  font-size: 14px; line-height: 1.45;
  animation: sk-in .28s var(--sk-ease) both;
}
.sk-alert .sk-icon { margin-top: 1px; }
.sk-alert-error { background: var(--sk-error-bg); border-color: var(--sk-error-line); color: var(--sk-error-text); }
.sk-alert-info { background: var(--sk-info-bg); border-color: var(--sk-info-line); color: var(--sk-info-text); }
.sk-notice {
  margin: 0 0 22px; padding: 22px 18px 18px;
  border-radius: 20px; background: var(--sk-info-bg); border: 1px solid var(--sk-info-line); color: var(--sk-info-text);
  text-align: center;
}
.sk-notice-ok { background: var(--sk-ok-bg); border-color: var(--sk-ok-line); color: var(--sk-ok-text); }
.sk-notice-icon { display: inline-flex; padding: 10px; border-radius: 999px; background: rgb(255 255 255 / .75); margin-bottom: 10px; }
.sk-notice-icon .sk-icon { width: 26px; height: 26px; }
.sk-notice-title { margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.sk-notice-text { margin: 0 0 6px; font-size: 14px; color: var(--sk-text-2); }
.sk-notice-soft { color: var(--sk-muted); font-size: 13px; margin: 0; }

/* ------------------------------------------------------------------ form */
.sk-form { margin: 0; }
.sk-field { margin: 0 0 14px; }
.sk-label { display: block; margin: 0 0 7px 2px; font-size: 13px; font-weight: 600; color: var(--sk-text-2); }
.sk-input {
  display: block; width: 100%; height: 52px; margin: 0;
  padding: 0 16px;
  border: 1.5px solid transparent; border-radius: var(--sk-radius-field);
  background: var(--sk-field); color: var(--sk-text);
  font-size: 16px; /* 16px: iOS does not zoom into the field */
  -webkit-appearance: none; appearance: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.sk-input::placeholder { color: var(--sk-muted); opacity: 1; }
.sk-input:hover { background: var(--sk-field-hover); }
.sk-input:focus { outline: none; background: var(--sk-surface); border-color: var(--sk-blue); box-shadow: 0 0 0 4px var(--sk-ring); }
.sk-input[readonly] { color: var(--sk-muted); }
.sk-pw { position: relative; }
.sk-pw .sk-input { padding-right: 54px; }
.sk-eye {
  position: absolute; top: 4px; right: 4px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--sk-muted); cursor: pointer;
}
.sk-eye:hover { color: var(--sk-text); background: rgb(15 23 42 / .05); }
.sk-eye .sk-eye-hide { display: none; }
.sk-eye[aria-pressed="true"] .sk-eye-show { display: none; }
.sk-eye[aria-pressed="true"] .sk-eye-hide { display: block; }
.sk-row-end { display: flex; justify-content: flex-end; margin: -2px 0 20px; }
.sk-link { color: var(--sk-blue); font-weight: 600; font-size: 14px; }

/* ------------------------------------------------------------------ buttons */
.sk-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; margin: 0; padding: 0 20px;
  border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: .005em; line-height: 1.2;
  cursor: pointer; text-decoration: none !important;
  transition: transform .12s var(--sk-ease), box-shadow .2s, filter .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
/* <button> and <a> buttons alike: '.sk-body button { font: inherit }' outranks '.sk-btn', so repeat the label font here. */
.sk-body .sk-btn { font-size: 16px; font-weight: 600; letter-spacing: .005em; line-height: 1.2; }
.sk-btn + .sk-btn { margin-top: 10px; }
.sk-btn-primary { background: var(--sk-primary); color: #fff !important; box-shadow: 0 12px 24px -12px var(--sk-primary-shadow); }
.sk-btn-primary:hover { filter: brightness(1.06); }
.sk-btn:active { transform: scale(.985); }
.sk-btn-secondary { background: var(--sk-field); color: var(--sk-text) !important; }
.sk-btn-secondary:hover { background: var(--sk-field-hover); }
.sk-btn-ghost { background: transparent; color: var(--sk-text-2) !important; min-height: 48px; }
.sk-btn-ghost:hover { background: var(--sk-field); }
.sk-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.sk-btn[aria-busy="true"] { cursor: progress; }
.sk-btn[aria-busy="true"] .sk-btn-label { opacity: .85; }

.sk-spinner {
  display: none; width: 18px; height: 18px; flex: none;
  border-radius: 50%; border: 2.5px solid rgb(255 255 255 / .35); border-top-color: #fff;
  animation: sk-spin .8s linear infinite;
}
.sk-spinner-dark { border-color: rgb(0 20 141 / .15); border-top-color: var(--sk-blue); }
[aria-busy="true"] > .sk-spinner, .sk-spinner-on { display: inline-block; }

/* ------------------------------------------------------------------ Face ID */
.sk-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--sk-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sk-divider::before, .sk-divider::after { content: ''; flex: 1; height: 1px; background: var(--sk-line); }
.sk-face {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; padding: 18px 16px 16px; margin: 0;
  border: 1.5px solid var(--sk-line); border-radius: 22px; background: var(--sk-surface);
  text-align: center; cursor: pointer;
  transition: border-color .15s, box-shadow .2s, transform .12s var(--sk-ease);
  -webkit-tap-highlight-color: transparent;
}
.sk-face:hover { border-color: #c7d2fe; box-shadow: 0 10px 24px -16px rgb(0 20 141 / .35); }
.sk-face:active { transform: scale(.99); }
.sk-face-glyph { display: inline-flex; padding: 10px; border-radius: 16px; background: #eef2ff; color: var(--sk-navy); }
.sk-face-glyph .sk-icon { width: 36px; height: 36px; }
.sk-face-title { font-size: 16px; font-weight: 700; color: var(--sk-text); }
.sk-face-caption { font-size: 13px; color: var(--sk-muted); max-width: 300px; }
.sk-face .sk-spinner { position: absolute; top: 16px; right: 16px; }
.sk-face[aria-busy="true"] { cursor: progress; border-color: #c7d2fe; }
.sk-msg { margin: 12px 0 0; font-size: 14px; text-align: center; color: var(--sk-text-2); }
.sk-msg.is-error { color: var(--sk-error-text); }
.sk-msg.is-ok { color: var(--sk-ok-text); }

/* The offer after a password login */
.sk-offer { text-align: center; }
.sk-offer-wait { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 0; }
/* 'Continue' appears by itself after 4 seconds (pure CSS): the page never depends on login.js to move on. */
.sk-body .sk-offer-continue { width: auto; min-width: 200px; margin-top: 8px; visibility: hidden;
  animation: sk-reveal 0s linear 4s forwards; }
.sk-offer-glyph { display: inline-flex; padding: 16px; margin: 4px 0 18px; border-radius: 24px; background: #eef2ff; color: var(--sk-navy); }
.sk-offer-glyph .sk-icon { width: 56px; height: 56px; }
.sk-offer-card .sk-title { margin-bottom: 10px; }
.sk-offer-card .sk-lead { margin: 0 0 24px; }
.sk-offer-card, .sk-offer-done { animation: sk-in .32s var(--sk-ease) both; }
.sk-offer-done { padding: 18px 0; }
.sk-done-icon { display: inline-flex; padding: 14px; margin-bottom: 14px; border-radius: 999px; background: var(--sk-ok-bg); color: var(--sk-ok-text); }
.sk-done-icon .sk-icon { width: 40px; height: 40px; }

/* My passkeys */
.sk-keys { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.sk-key { padding: 14px; border: 1px solid var(--sk-line); border-radius: 18px; background: var(--sk-surface); }
.sk-key-row { display: flex; align-items: center; gap: 12px; }
.sk-key-icon { display: inline-flex; padding: 8px; border-radius: 12px; background: #eef2ff; color: var(--sk-navy); }
.sk-key-main { min-width: 0; display: flex; flex-direction: column; }
.sk-key-name { font-weight: 600; overflow-wrap: anywhere; }
.sk-key-meta { font-size: 12.5px; color: var(--sk-muted); }
.sk-key-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sk-key-rename { margin-top: 12px; }
.sk-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--sk-line); border-radius: 999px; background: var(--sk-surface);
  font-size: 13.5px; font-weight: 600; color: var(--sk-text-2); cursor: pointer;
}
.sk-chip:hover { background: var(--sk-field); }
.sk-chip-danger { color: var(--sk-error-text); border-color: var(--sk-error-line); }
.sk-chip-primary { color: #fff; background: var(--sk-blue); border-color: var(--sk-blue); }
.sk-chip-primary:hover { background: var(--sk-navy); }
.sk-reauth { margin-bottom: 14px; padding: 16px; border-radius: 18px; background: var(--sk-page); }
.sk-reauth .sk-fine { margin: 0 0 12px; text-align: left; }

/* ------------------------------------------------------------------ Odoo's own pages in the shell (two-factor code,
   sign-up): their Bootstrap classes, without Bootstrap */
.sk-slot .card-title, .sk-slot h5 { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sk-slot .form-group { margin: 0 0 14px; }
.sk-slot label:not(.sk-label) { display: inline-block; margin: 0 0 7px 2px; font-size: 13px; font-weight: 600; color: var(--sk-text-2); }
.sk-slot .form-control {
  display: block; width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid transparent; border-radius: var(--sk-radius-field); background: var(--sk-field);
  font-size: 16px; -webkit-appearance: none; appearance: none;
}
.sk-slot .form-control:focus { outline: none; background: var(--sk-surface); border-color: var(--sk-blue); box-shadow: 0 0 0 4px var(--sk-ring); }
.sk-slot .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent;
}
.sk-slot .btn-primary { background: var(--sk-primary); color: #fff; box-shadow: 0 12px 24px -12px var(--sk-primary-shadow); }
.sk-slot .btn-block { display: flex; width: 100%; min-height: 54px; font-size: 16px; }
.sk-slot .btn-link { color: var(--sk-blue); background: transparent; }
.sk-slot .btn-sm { min-height: 40px; font-size: 14px; }
.sk-slot .alert { padding: 12px 14px; border-radius: var(--sk-radius-field); border: 1px solid; font-size: 14px; margin: 0 0 14px; text-align: left; }
.sk-slot .alert-danger { background: var(--sk-error-bg); border-color: var(--sk-error-line); color: var(--sk-error-text); }
.sk-slot .alert-success { background: var(--sk-ok-bg); border-color: var(--sk-ok-line); color: var(--sk-ok-text); }
.sk-slot .text-muted { color: var(--sk-muted); }
.sk-slot .text-center { text-align: center; }
.sk-slot .small { font-size: 13px; }
.sk-slot .d-flex { display: flex; }
.sk-slot .justify-content-between { justify-content: space-between; }
.sk-slot .border-top { border-top: 1px solid var(--sk-line); }
.sk-slot .mt-2 { margin-top: 8px; }
.sk-slot .mb-2 { margin-bottom: 8px; }
.sk-slot .mb-1 { margin-bottom: 4px; }
.sk-slot .py-2 { padding-top: 8px; padding-bottom: 8px; }
.sk-slot .pt-3 { padding-top: 16px; }
.sk-slot .w-100 { width: 100%; }
.sk-slot .font-weight-bold { font-weight: 700; }
.sk-slot input[type="checkbox"] { width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--sk-blue); }
.sk-slot .oe_login_buttons { margin-top: 8px; }

/* ------------------------------------------------------------------ motion */
@keyframes sk-spin { to { transform: rotate(360deg); } }
@keyframes sk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sk-reveal { to { visibility: visible; } }
@media (prefers-reduced-motion: reduce) {
  .sk-body *, .sk-body *::before, .sk-body *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .sk-spinner { animation: none; border-top-color: currentColor; }
}
