/* SWP Connect Service - login v6 (Windplan palette). Mirrors Figma file RGjJG3RLzW4kCJHTjXXRbZ, node 19:71.
   Customization of a GLPI core file, see README.swp-login.md before upgrading GLPI. */
.swp-login {
    --swp-navy: #132239;
    --swp-navy-800: #1b2541;
    --swp-gold: #e2c26f;
    --swp-gold-grad: linear-gradient(90deg, #f6de94 0%, #d4a84a 50%, #a67a2a 100%);
    --swp-muted: #6b7280;
    --swp-faint: rgba(255, 255, 255, .55);

    margin: 0;
    min-height: 100vh;
    background: var(--swp-navy);
    color: #fff;
    font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
}

.swp-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 640px);
    min-height: 100vh;
    outline: none;
}

/* Hero panel: static, Figma 1:1 px. Nothing scales with zoom or width; the panel only reveals more or
   less of the scene. Orbits and disc hang from the top right corner (next to the login panel), dots and
   copy from the left, landscape from the bottom right. */
.swp-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    container-type: inline-size;
}
.swp-hero__orbit, .swp-hero__orbit-dashed, .swp-hero__disc { position: absolute; display: block; max-width: none; }
.swp-hero__orbit { right: -440px; top: -360px; width: 760px; height: 760px; }
.swp-hero__orbit-dashed { right: -280px; top: -220px; width: 560px; height: 560px; }
.swp-hero__disc { right: 70px; top: 150px; width: 130px; height: 130px; }

/* Dot grid: one repeated radial-gradient, faded towards the top right by a mask */
.swp-hero__dots {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 720px;
    height: 360px;
    background-image: radial-gradient(circle, rgba(226, 194, 111, .75) 2px, transparent 2.5px);
    background-size: 30px 30px;
    background-position: 3px 100%;
    -webkit-mask-image: radial-gradient(120% 115% at 0% 100%, #000 25%, rgba(0, 0, 0, .12) 85%, transparent 100%);
    mask-image: radial-gradient(120% 115% at 0% 100%, #000 25%, rgba(0, 0, 0, .12) 85%, transparent 100%);
}

.swp-hero__logo { position: absolute; left: 64px; top: 52px; z-index: 1; }

.swp-hero__copy { position: absolute; left: 64px; right: 32px; top: 188px; z-index: 1; }
.swp-wordmark { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 16px; }
.swp-wordmark__swp {
    font-size: 112px;
    font-weight: 800;
    line-height: .93;
    letter-spacing: -.03em;
    color: transparent;
    background: var(--swp-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
}
.swp-wordmark__sub { display: flex; flex-direction: column; gap: 2px; padding-bottom: .5em; }
.swp-wordmark__connect { font-size: 22px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.swp-wordmark__service { font-size: 14px; font-weight: 600; letter-spacing: .34em; color: var(--swp-gold); }
.swp-hero__headline { max-width: 560px; margin: 28px 0 14px; font-size: 40px; font-weight: 700; line-height: 48px; color: #fff; }
.swp-hero__headline span { display: block; }
.swp-hero__text { max-width: 500px; margin: 0; font-size: 16px; line-height: 26px; color: rgba(255, 255, 255, .7); }

/* Energy landscape: one SVG at fixed 800x340, pinned to the bottom right. overflow: visible lets the
   turbine tops and the extended terrain (to x=-8000) render outside the box; the panel clips them. */
.swp-land {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 800px;
    height: 340px;
    overflow: visible;
    pointer-events: none;
}
.swp-hero__vignette { position: absolute; left: 0; bottom: 0; width: 100%; height: 150px; background: linear-gradient(180deg, rgba(19, 34, 57, 0) 0%, rgba(19, 34, 57, .55) 100%); pointer-events: none; }

/* Login panel */
.swp-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-width: 0;
    padding: 40px clamp(20px, 4vw, 56px) 36px;
    background: var(--swp-navy-800);
    border-left: 1px solid rgba(255, 255, 255, .08);
}
.swp-topbar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; width: 100%; }
.swp-topbar__logo { display: none; margin-right: auto; max-width: 50%; height: auto; }

.swp-form { width: 400px; max-width: 100%; }
.swp-title { margin: 0 0 6px; font-size: 28px; font-weight: 700; line-height: 36px; color: #fff; }
.swp-lead { margin: 0 0 26px; font-size: 14px; line-height: 22px; color: rgba(255, 255, 255, .65); }
.swp-notice { margin-bottom: 16px; padding: 10px 14px; border-left: 2px solid var(--swp-gold); font-size: 14px; color: #fff; }

.swp-field { margin-bottom: 16px; }
.swp-field__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.swp-login .form-label { margin: 0; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.swp-link { font-size: 13px; font-weight: 600; color: var(--swp-gold); text-decoration: none; }
.swp-link:hover, .swp-link:focus { color: #f6de94; text-decoration: underline; }

.swp-input { position: relative; }
.swp-login .swp-form .form-control {
    width: 100%;
    height: 48px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--swp-navy);
    background-color: #fff;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}
.swp-login .swp-form .form-control::placeholder { color: var(--swp-muted); }
.swp-login .swp-form .form-control:focus { box-shadow: 0 0 0 3px rgba(226, 194, 111, .55); }
.swp-login .swp-form #login_password { padding-right: 52px; }
.swp-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    cursor: pointer;
}
.swp-eye[aria-pressed="true"] { opacity: .5; }
.swp-eye:focus-visible { outline: 2px solid var(--swp-gold); }

.swp-remember { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14px; font-weight: 500; color: #fff; cursor: pointer; }
.swp-remember input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
}
.swp-remember input:checked { background: url("../pics/swp/v6/checkbox-checked.svg") center / 18px 18px no-repeat; border: 0; }
.swp-remember input:focus-visible { outline: 2px solid var(--swp-gold); outline-offset: 2px; }

.swp-btn {
    display: block;
    width: 100%;
    height: 50px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--swp-navy);
    background: var(--swp-gold-grad);
    border: 0;
    border-radius: 10px;
    transition: filter .15s ease, transform .15s ease;
}
.swp-btn:hover, .swp-btn:focus-visible { color: var(--swp-navy); filter: brightness(1.06); transform: translateY(-1px); }
.swp-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.swp-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 12px; font-weight: 500; color: var(--swp-faint); }
.swp-or::before, .swp-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .16); }

/* Plugin login buttons (SSO etc.) take the outlined Figma "Button/SSO" look */
.swp-plugins { text-align: center; }
.swp-plugins:not(:has(*)), .swp-or:has(+ .swp-plugins:not(:has(*))) { display: none; }
.swp-plugins .btn {
    width: 100%;
    min-height: 46px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
}

/* Figma "Button/SSO" (19:681): building icon + label, centered, 10px gap */
.swp-plugins .swp-sso { display: flex; align-items: center; justify-content: center; gap: 10px; }
.swp-plugins .swp-sso:hover, .swp-plugins .swp-sso:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }

.swp-auth { margin-top: 12px; font-size: 12px; text-align: center; color: var(--swp-faint); }
.swp-auth__change { padding: 0; font: inherit; font-weight: 600; color: var(--swp-gold); background: none; border: 0; cursor: pointer; }
.swp-auth__select { margin-top: 10px; text-align: left; }

.swp-faq { margin-top: 12px; text-align: center; }
.swp-faq a { font-size: 12px; font-weight: 600; color: var(--swp-gold); }

/* Language pill */
.swp-lang { position: relative; display: flex; align-items: center; }
.swp-lang__icon { position: absolute; left: 12px; pointer-events: none; }
.swp-login .swp-lang__select {
    height: 34px;
    padding: 0 32px 0 36px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(19, 34, 57, .6) url("../pics/swp/v6/icon-chevron-down.svg") no-repeat right 12px center / 12px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    appearance: none;
    cursor: pointer;
}
.swp-lang__select option { color: var(--swp-navy); background: #fff; }
.swp-lang__select:focus-visible { outline: 2px solid var(--swp-gold); outline-offset: 2px; }

/* ISO certifications */
.swp-certs { width: 400px; max-width: 100%; padding-top: 18px; text-align: center; }
.swp-certs__title { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.swp-certs ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.swp-certs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 14px 6px 12px;
    background: #fff;
    border: 1px solid #e4e7ee;
    border-radius: 12px;
    box-shadow: 0 4px 14px -8px rgba(19, 34, 57, .12);
}
.swp-certs img { width: 40px; height: 44px; object-fit: contain; }
.swp-certs b { display: block; font-size: 13px; font-weight: 700; color: var(--swp-navy-800); }
.swp-certs small { display: block; font-size: 11px; color: var(--swp-muted); }
.swp-copy { margin: 0; font-size: 11px; color: rgba(255, 255, 255, .4); }

/* Hero narrower than the 720px the Figma copy needs (viewport ~1024-1360px): drop the disc and
   orbits that would sit on the wordmark, and use the smaller type steps so copy stays above the scene */
@container (max-width: 719.98px) {
    .swp-hero__orbit, .swp-hero__orbit-dashed, .swp-hero__disc { display: none; }
    .swp-hero__logo { left: 40px; width: 168px; height: auto; }
    .swp-hero__copy { left: 40px; top: 140px; }
    .swp-wordmark__swp { font-size: 72px; }
    .swp-wordmark__connect { font-size: 16px; }
    .swp-wordmark__service { font-size: 11px; }
    .swp-hero__headline { margin: 18px 0 10px; font-size: 26px; line-height: 32px; }
    .swp-hero__text { font-size: 14px; line-height: 22px; }
}
/* Narrow and short (e.g. 125% zoom on a 1280x800 screen): the near turbine would reach the copy.
   Slide the scene right so it leaves through the panel edge, and drop the secondary paragraph. */
@container (max-width: 719.98px) {
    @media (max-height: 760px) {
        .swp-land { right: -150px; }
        .swp-hero__text { display: none; }
    }
}

/* Below 1024px: form only, centered */
@media (max-width: 1023.98px) {
    .swp-shell { grid-template-columns: minmax(0, 1fr); }
    .swp-hero { display: none; }
    .swp-panel { border-left: 0; }
    .swp-topbar__logo { display: block; }
}
@media (max-width: 575.98px) {
    .swp-panel { padding: 24px 16px; }
    .swp-certs small { font-size: 10px; }
}
