/* ============================================================
   ICEKOM — Portail client / Login premium
   ============================================================ */

:root {
    --ik-bg: #f4f7fb;
    --ik-card: #ffffff;
    --ik-text: #102238;
    --ik-muted: #66778d;
    --ik-border: #dbe4ee;
    --ik-primary: #0a74ba;
    --ik-primary-dark: #075d98;
    --ik-navy: #04192a;
    --ik-navy-soft: #08283f;
    --ik-success: #16a56a;
    --ik-shadow: 0 24px 70px rgba(9, 37, 61, .12);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(49, 145, 209, .08), transparent 30rem),
        radial-gradient(circle at 92% 90%, rgba(9, 101, 160, .07), transparent 34rem),
        var(--ik-bg);
    color: var(--ik-text);
}

.icekom-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3.5vw, 56px);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

.icekom-login-shell {
    width: min(1120px, 100%);
    min-height: min(700px, calc(100vh - 72px));
    display: grid;
    grid-template-columns: minmax(420px, .96fr) minmax(470px, 1.04fr);
    overflow: hidden;
    border: 1px solid rgba(211, 222, 233, .86);
    border-radius: 30px;
    background: var(--ik-card);
    box-shadow: var(--ik-shadow);
}

.icekom-login-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 54px 54px 36px;
    background:
        linear-gradient(145deg, rgba(6, 40, 64, .98), rgba(2, 24, 41, 1)),
        var(--ik-navy);
    color: #fff;
}

.icekom-login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

.icekom-brand-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
}

.icekom-brand-glow-one {
    top: -190px;
    left: -110px;
    background: rgba(48, 158, 231, .19);
}

.icekom-brand-glow-two {
    right: -210px;
    bottom: -210px;
    background: rgba(34, 122, 183, .15);
}

.icekom-brand-content,
.icekom-brand-footer {
    position: relative;
    z-index: 1;
}

.icekom-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    min-height: 78px;
    padding: 11px 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .17);
}

.icekom-real-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.icekom-brand-copy {
    margin-top: 74px;
}

.icekom-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #7fc9fa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.icekom-eyebrow::before {
    content: "";
    width: 25px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.icekom-brand-copy h1 {
    max-width: 500px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 4.3vw, 60px);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: .99;
}

.icekom-brand-copy h1 span {
    color: #5db9f4;
}

.icekom-brand-copy p {
    max-width: 460px;
    margin: 24px 0 0;
    color: rgba(225, 238, 248, .75);
    font-size: 15px;
    line-height: 1.75;
}

.icekom-feature-list {
    display: grid;
    gap: 12px;
    margin-top: 48px;
}

.icekom-feature {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.icekom-feature-icon {
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(81, 177, 238, .12);
    color: #78c8fb;
}

.icekom-feature-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.icekom-feature span:last-child {
    min-width: 0;
}

.icekom-feature strong,
.icekom-feature small {
    display: block;
}

.icekom-feature strong {
    color: #f5f9fc;
    font-size: 13px;
    font-weight: 720;
}

.icekom-feature small {
    margin-top: 3px;
    color: rgba(216, 232, 243, .56);
    font-size: 11px;
}

.icekom-brand-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 42px;
    color: rgba(218, 233, 243, .55);
    font-size: 11px;
}

.icekom-security-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #39d98a;
    box-shadow: 0 0 0 5px rgba(57, 217, 138, .09);
}

.icekom-login-main {
    display: grid;
    place-items: center;
    padding: 54px 64px;
    background:
        radial-gradient(circle at 100% 0, rgba(40, 137, 201, .04), transparent 21rem),
        #fff;
}

.icekom-login-card {
    width: min(440px, 100%);
}

.icekom-mobile-logo {
    display: none;
}

.icekom-login-heading {
    margin-bottom: 34px;
}

.icekom-secure-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid #d8e8f3;
    border-radius: 999px;
    background: #f3f9fd;
    color: #2879ad;
    font-size: 11px;
    font-weight: 750;
}

.icekom-secure-badge svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icekom-login-heading h2 {
    margin: 0;
    color: #11263d;
    font-size: 38px;
    font-weight: 780;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.icekom-login-heading p {
    margin: 12px 0 0;
    color: #708196;
    font-size: 14px;
    line-height: 1.6;
}

.icekom-login-form {
    display: grid;
    gap: 21px;
}

.icekom-field {
    display: grid;
    gap: 9px;
}

.icekom-field label,
.icekom-label-line label {
    color: #283c51;
    font-size: 12px;
    font-weight: 740;
}

.icekom-label-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.icekom-forgot-link {
    color: var(--ik-primary);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.icekom-forgot-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.icekom-input-wrap {
    position: relative;
}

.icekom-input {
    width: 100%;
    min-height: 52px;
    padding: 0 48px 0 46px;
    border: 1px solid var(--ik-border);
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: #14283d;
    font: inherit;
    font-size: 13px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.icekom-input::placeholder {
    color: #a1adba;
}

.icekom-input:hover {
    border-color: #c7d5e2;
}

.icekom-input:focus {
    border-color: #56a8d9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10, 116, 186, .09);
}

.icekom-input-icon {
    position: absolute;
    z-index: 1;
    left: 16px;
    top: 50%;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    color: #74879a;
    transform: translateY(-50%);
    pointer-events: none;
}

.icekom-input-icon svg,
.icekom-password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icekom-password-toggle {
    position: absolute;
    z-index: 2;
    right: 9px;
    top: 50%;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8291a1;
    cursor: pointer;
    transform: translateY(-50%);
}

.icekom-password-toggle:hover {
    background: #f2f6f9;
    color: #416279;
}

.icekom-password-toggle .eye-closed {
    display: none;
}

.icekom-password-toggle.is-visible .eye-open {
    display: none;
}

.icekom-password-toggle.is-visible .eye-closed {
    display: block;
}

.icekom-remember {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: -4px;
    color: #65768a;
    font-size: 12px;
    cursor: pointer;
}

.icekom-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--ik-primary);
}

.icekom-submit {
    width: 100%;
    min-height: 53px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(135deg, #0879c3, #075f9d);
    color: #fff;
    box-shadow: 0 12px 26px rgba(8, 105, 170, .20);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: .01em;
    cursor: pointer;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}

.icekom-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(8, 105, 170, .26);
}

.icekom-submit:active {
    transform: translateY(0);
}

.icekom-help {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 28px;
    padding: 14px 15px;
    border: 1px solid #e0e8ef;
    border-radius: 13px;
    background: #f8fafc;
}

.icekom-help-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #e9f3f9;
    color: #287bab;
    font-size: 12px;
    font-weight: 800;
}

.icekom-help p {
    margin: 0;
    color: #6b7c8e;
    font-size: 11px;
    line-height: 1.55;
}

.icekom-help strong {
    display: block;
    margin-bottom: 2px;
    color: #34495d;
    font-weight: 750;
}

.icekom-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 27px;
    color: #9aa5b1;
    font-size: 10px;
}

.icekom-footer-separator {
    color: #c4ccd4;
}

/* Messages Flash CakePHP */
.icekom-login-card .message,
.icekom-login-card .flash-message,
.icekom-login-card .alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #f0c5c9;
    border-radius: 11px;
    background: #fff4f5;
    color: #a63d46;
    font-size: 12px;
    line-height: 1.45;
}

.icekom-login-card .message.success,
.icekom-login-card .flash-success,
.icekom-login-card .alert-success {
    border-color: #bae6cf;
    background: #effaf4;
    color: #227a4f;
}

@media (max-width: 930px) {
    .icekom-login-page {
        padding: 18px;
    }

    .icekom-login-shell {
        grid-template-columns: 1fr;
        width: min(600px, 100%);
        min-height: auto;
        border-radius: 24px;
    }

    .icekom-login-brand {
        min-height: auto;
        padding: 34px 38px 30px;
    }

    .icekom-logo-box {
        display: none;
    }

    .icekom-brand-copy {
        margin-top: 0;
    }

    .icekom-brand-copy h1 {
        font-size: 34px;
    }

    .icekom-brand-copy p {
        margin-top: 14px;
    }

    .icekom-feature-list {
        display: none;
    }

    .icekom-brand-footer {
        margin-top: 22px;
    }

    .icekom-login-main {
        padding: 38px;
    }

    .icekom-mobile-logo {
        display: block;
        width: 170px;
        margin-bottom: 30px;
    }

    .icekom-mobile-logo-image {
        display: block;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 560px) {
    .icekom-login-page {
        display: block;
        padding: 0;
        background: #fff;
    }

    .icekom-login-shell {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .icekom-login-brand {
        padding: 26px 24px 25px;
    }

    .icekom-brand-copy h1 {
        font-size: 29px;
    }

    .icekom-brand-copy p {
        font-size: 13px;
        line-height: 1.6;
    }

    .icekom-brand-footer {
        display: none;
    }

    .icekom-login-main {
        display: block;
        padding: 32px 24px 38px;
    }

    .icekom-mobile-logo {
        width: 145px;
        margin-bottom: 25px;
    }

    .icekom-login-heading {
        margin-bottom: 28px;
    }

    .icekom-login-heading h2 {
        font-size: 32px;
    }

    .icekom-label-line {
        align-items: flex-end;
    }

    .icekom-forgot-link {
        white-space: nowrap;
    }

    .icekom-input,
    .icekom-submit {
        min-height: 50px;
    }

    .icekom-help {
        margin-top: 24px;
    }
}
