/* =========================================================================
 * EthERNet Discovery Service - professional theme
 * Brand colour: #006E8A
 * ========================================================================= */

:root {
    --brand: #006E8A;
    --brand-deep: #094E63;
    --brand-soft: #00566c;
    --brand-2: #0fa6c4;
    --gold: #e7a93c;
    --ink: #233a46;
    --muted: #5f7480;
    --line: #e3ebef;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #eef3f6;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------- hero --------------------------------- */

.hero {
    position: relative;
    flex: 1 0 auto;
    overflow: hidden;
    background:
        linear-gradient(160deg, #02384a 0%, var(--brand) 46%, #0096b6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 72px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 26px 26px, 13px 13px;
    background-position: 0 0, 7px 7px;
    mix-blend-mode: overlay;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
}

.hero-glow-a {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -120px;
    background: var(--brand-2);
}

.hero-glow-b {
    width: 380px;
    height: 380px;
    bottom: -160px;
    left: -120px;
    background: #ffb84d;
    opacity: 0.28;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    text-align: center;
    animation: rise 0.55s ease-out both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------- brand -------------------------------- */

/* ------------------------------- card ---------------------------------- */

.card {
    position: relative;
    background: var(--card);
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 30px 60px -18px rgba(0, 32, 44, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--brand-2));
    z-index: 2;
}

.card-logo {
    background: #fff;
    padding: 20px 26px;
    border-bottom: 1px solid var(--line);
}

.card-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.card-body {
    padding: 26px 28px 24px;
}

.card-head {
    margin-bottom: 4px;
}

.card-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--brand);
}

.card-kicker::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 8px;
}

.card-note {
    margin: 14px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
    border-top: 1px dashed var(--line);
    padding-top: 12px;
}

.card-note a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.card-note a:hover {
    text-decoration: underline;
}

/* ====================== EDS components (injected by JS) ================= */

/* The injected selector is framed by the card, so strip its borders */
#idpSelect {
    display: block;
}

#idpSelectIdPSelector {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* ------------------------- preferred IdP tile ------------------------- */

#idpSelectPreferredIdPTile {
    height: auto;
    padding: 8px 0 4px;
}

#idpSelectPreferredIdPTileNoImg {
    padding: 8px 0 4px;
}

div.IdPSelectPreferredIdPButton {
    margin: 0 8px 8px 0;
    width: 120px;
    float: left;
}

div.IdPSelectPreferredIdPButton a {
    float: left;
    width: 99%;
    display: block;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px 4px 2px;
    background: #fbfdfe;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

div.IdPSelectPreferredIdPButton a:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 14px -8px rgba(0, 110, 138, 0.5);
    transform: translateY(-1px);
}

div.IdPSelectPreferredIdPImg {
    height: auto;
    min-height: 44px;
    margin: 2px;
}

img.IdPSelectIdPImg {
    width: auto;
}

div.IdPSelectPreferredIdPButton img {
    display: block;
    max-width: 96px;
    max-height: 44px;
    margin: 3px auto;
    border: 0;
}

div.IdPSelectPreferredIdPButton div.IdPSelectTextDiv {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 30px;
    line-height: 1.35;
    margin-top: 4px;
}

/* ------------------------------ text labels ---------------------------- */

div.IdPSelectTextDiv {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    clear: left;
    margin: 10px 0 6px;
    height: auto;
    line-height: 1.4;
}

label div.IdPSelectTextDiv {
    margin: 0 0 6px;
}

/* ------------------------------ inputs --------------------------------- */

#idpSelectInput,
#idpSelectSelector {
    width: 100%;
    border: 1.5px solid #c9d6dd;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#idpSelectInput:focus,
#idpSelectSelector:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 110, 138, 0.16);
}

/* Buttons */
#idpSelectSelectButton,
#idpSelectListButton {
    width: 100%;
    margin: 12px 0 0;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px -8px rgba(0, 110, 138, 0.6);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

#idpSelectSelectButton:hover,
#idpSelectListButton:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

#idpSelectSelectButton:active,
#idpSelectListButton:active {
    transform: translateY(0);
}

#idpSelectSelectButton:disabled,
#idpSelectListButton:disabled {
    background: #d7e2e7;
    color: #8fa3ad;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --------------------------- toggle / help ----------------------------- */

a.IdPSelectDropDownToggle,
a.IdPSelectHelpButton {
    display: block;
    width: 100%;
    margin-top: 14px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
}

#idpSelectIdPSelector a:link,
#idpSelectIdPSelector a:visited,
.card-note a {
    color: var(--brand);
    text-decoration: none;
}

#idpSelectIdPSelector a:hover {
    text-decoration: underline;
    color: var(--brand-deep);
}

/* --------------------------- auto dispatch ------------------------------ */

div.IdPSelectautoDispatchArea {
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--muted);
}

div.IdPSelectautoDispatchTile {
    display: block;
    margin-top: 8px;
}

div.IdPSelectautoDispatchTile input {
    accent-color: var(--brand);
}

/* ------------------------- typeahead dropdown --------------------------- */

ul.IdPSelectDropDown {
    font-family: inherit;
    font-size: 0.88rem;
    box-sizing: border-box;
    list-style: none;
    padding: 6px;
    border: 1.5px solid var(--brand);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 36px -12px rgba(0, 32, 44, 0.4);
    z-index: 20;
    position: absolute;
    max-height: 280px;
    overflow: auto;
}

ul.IdPSelectDropDown li {
    background-color: #fff;
    cursor: default;
    padding: 9px 12px;
    border-radius: 8px;
}

ul.IdPSelectDropDown li.IdPSelectCurrent {
    background-color: var(--brand);
    color: #fff;
}

/* Legacy dropdown */
div.IdPSelectDropDown {
    font-family: inherit;
    font-size: 0.88rem;
    box-sizing: border-box;
    border: 1.5px solid var(--brand);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 36px -12px rgba(0, 32, 44, 0.4);
    z-index: 20;
    position: absolute;
}

div.IdPSelectDropDown div {
    background-color: #fff;
    cursor: default;
    padding: 9px 12px;
    border-radius: 8px;
}

div.IdPSelectDropDown div.IdPSelectCurrent {
    background-color: var(--brand);
    color: #fff;
}

/* --------------------------------- form --------------------------------- */

#idpSelectIdPSelector form {
    margin: 0;
}

/* --------------------------------- footer ------------------------------- */

.footer {
    flex-shrink: 0;
    padding: 18px 20px;
    text-align: center;
    background: var(--brand-deep);
    color: #bfe2ec;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
}

.footer a {
    color: #e9f6fa;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ------------------------------- responsive ----------------------------- */

@media (max-width: 520px) {
    .hero {
        padding: 40px 16px 60px;
    }

    .card-logo {
        padding: 14px 18px;
    }

    .card-body {
        padding: 20px 18px 18px;
    }
}

/* END */