:root {
    --blue: #126fe8;
    --blue-dark: #095dcc;
    --navy: #071a30;
    --text: #0e1b34;
    --muted: #53637e;
    --border: #d9e2ef;
    --soft-blue: #edf5ff;
    --panel: #f5f9ff;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: #f6f9fd;
    font-size: 14px;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(650px, 46.5%) 1fr;
}

/* =========================================================
   LEFT PANEL
   ========================================================= */

.login-brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(246,250,255,.98) 0%, rgba(241,247,255,.94) 71%, rgba(225,237,253,.92) 100%);
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 190px;
    background-image: url("../../images/login/jewelry-decor.png");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 190px auto;
    opacity: .95;
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 49px 50px 35px;
    display: flex;
    flex-direction: column;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 17px;
}

.brand-logo {
    width: 60px;
    height: 58px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.brand-logo span {
    display: block;
    width: 9px;
    border: 3px solid var(--blue);
    border-bottom-width: 3px;
    border-radius: 3px 3px 1px 1px;
}

.brand-logo span:nth-child(1) {
    height: 37px;
}

.brand-logo span:nth-child(2) {
    height: 54px;
}

.brand-logo span:nth-child(3) {
    height: 43px;
}

.brand-title {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.8px;
    font-weight: 650;
}

.brand-title strong {
    color: var(--blue);
    font-weight: 700;
}

.brand-tagline {
    margin-left: 77px;
    margin-top: 9px;
    color: #1c3152;
    font-size: 14px;
    letter-spacing: -.05px;
}

.hero-copy {
    margin-top: 62px;
    max-width: 540px;
}

.hero-copy h1 {
    margin: 0;
    font-size: 35px;
    line-height: 1.17;
    letter-spacing: -.9px;
    font-weight: 690;
}

.hero-copy h1 span {
    color: var(--blue);
}

.hero-line {
    width: 53px;
    height: 3px;
    border-radius: 4px;
    background: var(--blue);
    margin: 31px 0 28px;
}

.hero-copy p {
    width: 500px;
    max-width: 100%;
    margin: 0;
    color: #213655;
    font-size: 15px;
    line-height: 1.85;
}

.feature-grid {
    width: 555px;
    max-width: calc(100% - 95px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 42px;
    row-gap: 26px;
    margin-top: 39px;
}

.feature-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: start;
}

.feature-icon {
    width: 58px;
    height: 58px;
    border: 1px solid #c8dcf8;
    border-radius: 10px;
    background: rgba(238,246,255,.82);
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 25px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.feature-item h3 {
    margin: 3px 0 8px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.feature-item p {
    margin: 0;
    color: #263a58;
    font-size: 11.5px;
    line-height: 1.6;
}

.passion-card {
    width: 555px;
    max-width: calc(100% - 95px);
    margin-top: 33px;
    min-height: 83px;
    border: 1px solid #c8dcf8;
    border-radius: 9px;
    background: rgba(225,239,255,.75);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
}

.passion-icon {
    color: #8ab9f7;
    font-size: 34px;
    line-height: 1;
}

.passion-card strong,
.passion-card span {
    display: block;
}

.passion-card strong {
    font-size: 14px;
    margin-bottom: 6px;
}

.passion-card span {
    font-size: 13px;
    color: #263a58;
}

.passion-card b {
    color: var(--blue);
    font-size: 15px;
}

.brand-benefits {
    width: 555px;
    max-width: calc(100% - 95px);
    margin-top: auto;
    padding-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-benefits div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-benefits strong {
    font-size: 12px;
    font-weight: 600;
}

.benefit-icon {
    color: #0b203b;
    font-size: 20px;
}

.brand-benefits i {
    width: 1px;
    height: 24px;
    background: #bdcce0;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.login-form-panel {
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(circle at 52% 30%, #ffffff 0%, #f8fbff 43%, #edf4fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 74px 45px 50px;
}

.language-selector {
    position: absolute;
    right: 38px;
    top: 25px;
    height: 43px;
    min-width: 140px;
    border: 1px solid #d5dfeb;
    border-radius: 7px;
    background: rgba(255,255,255,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #1c2d47;
    font-size: 13px;
}

.language-selector button {
    border: 0;
    background: transparent;
    color: #273a58;
    padding: 0 3px;
}

.globe-icon {
    font-size: 22px;
    line-height: 1;
}

.login-card {
    width: min(708px, 100%);
    min-height: 837px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(220,228,238,.8);
    border-radius: 20px;
    box-shadow: 0 15px 42px rgba(36,60,91,.09);
    padding: 36px 63px 44px;
    display: flex;
    flex-direction: column;
}

.login-lock {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #edf5ff;
    border: 1px solid #c9defc;
    display: grid;
    place-items: center;
    color: #095dcc;
    font-size: 30px;
}

.login-heading {
    text-align: center;
}

.login-heading h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -.7px;
    font-weight: 720;
}

.login-heading p {
    margin: 10px 0 38px;
    color: #51627f;
    font-size: 16px;
}

.login-alert {
    margin: -18px 0 22px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #fff1f2;
    border: 1px solid #f3ccd1;
    color: #9e3441;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-alert span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d95362;
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: #101d33;
    font-size: 14px;
    font-weight: 650;
}

.input-wrap {
    height: 53px;
    position: relative;
    border: 1px solid #ccd8e7;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input-wrap:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(18,111,232,.10);
}

.input-icon {
    width: 52px;
    display: grid;
    place-items: center;
    color: #64758f;
    font-size: 22px;
}

.input-wrap input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 13px 0 0;
    color: #17233a;
    font-size: 15px;
}

.input-wrap input::placeholder {
    color: #64738b;
}

.password-toggle {
    width: 46px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #667792;
    font-size: 18px;
    padding: 0;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -3px 0 30px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #1c2c47;
}

.remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 19px;
    height: 19px;
    border: 1.5px solid #657993;
    border-radius: 4px;
    background: white;
    position: relative;
}

.remember input:checked + .checkmark {
    background: var(--blue);
    border-color: var(--blue);
}

.remember input:checked + .checkmark::after {
    content: "✓";
    color: #fff;
    position: absolute;
    left: 3px;
    top: -1px;
    font-size: 14px;
    font-weight: 700;
}

.login-options a {
    color: #0565dc;
    font-weight: 600;
}

.sign-in-button {
    width: 100%;
    height: 59px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #1479ee, #1169dd);
    color: #fff;
    font-size: 20px;
    font-weight: 650;
    box-shadow: 0 7px 18px rgba(18,111,232,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sign-in-button:hover {
    background: linear-gradient(90deg, #0f70e4, #0b5fd1);
}

.sign-in-arrow {
    position: absolute;
    right: 17px;
    width: 31px;
    height: 31px;
    border: 1.5px solid rgba(255,255,255,.9);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
}

.social-divider {
    margin: 37px 0 26px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
}

.social-divider span {
    height: 1px;
    background: #d6dee9;
}

.social-divider em {
    color: #52627b;
    font-size: 13px;
    font-style: normal;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 23px;
}

.social-button {
    height: 55px;
    border: 1px solid #d0dbe8;
    border-radius: 7px;
    background: #fff;
    color: #182942;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-size: 14px;
    font-weight: 520;
}

.social-button:hover {
    background: #f8fbff;
    border-color: #b9c9dc;
}

.google-g {
    font-size: 23px;
    font-weight: 750;
    color: #4285f4;
}

.microsoft-logo {
    width: 20px;
    height: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.microsoft-logo i:nth-child(1) { background: #f25022; }
.microsoft-logo i:nth-child(2) { background: #7fba00; }
.microsoft-logo i:nth-child(3) { background: #00a4ef; }
.microsoft-logo i:nth-child(4) { background: #ffb900; }

.privacy-card {
    margin-top: 28px;
    min-height: 80px;
    border-radius: 8px;
    background: #eaf3ff;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 15px 21px;
}

.privacy-icon {
    width: 35px;
    height: 35px;
    color: var(--blue);
    border: 2px solid var(--blue);
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 20px;
}

.privacy-card strong,
.privacy-card span {
    display: block;
}

.privacy-card strong {
    font-size: 14px;
    margin-bottom: 5px;
}

.privacy-card span {
    color: #53637d;
    font-size: 13px;
}

.login-version {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    color: #52627b;
    font-size: 12px;
}

.login-version i {
    width: 1px;
    height: 15px;
    background: #b9c6d6;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {
    .login-page {
        grid-template-columns: 46% 54%;
    }

    .brand-content {
        padding-left: 38px;
        padding-right: 30px;
    }

    .feature-grid,
    .passion-card,
    .brand-benefits {
        max-width: calc(100% - 80px);
    }

    .login-card {
        padding-left: 46px;
        padding-right: 46px;
    }
}

@media (max-width: 1050px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 90px 25px 75px;
    }

    .login-card {
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .login-form-panel {
        padding: 75px 13px 65px;
    }

    .language-selector {
        right: 14px;
        top: 14px;
        min-width: 120px;
        height: 39px;
    }

    .login-card {
        border-radius: 15px;
        padding: 28px 22px 30px;
    }

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

    .login-heading p {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .social-login {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .login-version {
        font-size: 9px;
        gap: 8px;
    }
}


/* =========================================================
   Druvea premium login refresh — fixed card, responsive shell
   ========================================================= */
html, body { height: 100%; }
body.druvea-login { overflow: hidden; background: #f4f8ff; }
.login-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-columns: minmax(0, 65fr) minmax(390px, 35fr);
    overflow: hidden;
}
.login-brand-panel {
    height: 100%;
    min-height: 0;
    background: #edf5ff;
}
.login-brand-panel::after { display: none; }
.brand-slideshow { position: absolute; inset: 0; overflow: hidden; background: #edf5ff; }
.brand-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    /* These showcase assets already contain the complete left-panel composition.
       Fill the viewport panel so the logo, headline and bottom metrics remain visible. */
    object-fit: fill;
    object-position: center center;
    opacity: 0;
    transition: opacity 900ms ease-in-out;
    pointer-events: none;
}
.brand-slide.is-active { opacity: 1; }
.showcase-hit {
    position: absolute;
    z-index: 3;
    bottom: 14.0%;
    width: 5.1%;
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.showcase-prev { left: 24.0%; }
.showcase-next { left: 30.9%; }
.showcase-hit:focus-visible { outline: 3px solid #0877f9; outline-offset: 2px; }
.showcase-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.login-form-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 58px clamp(16px, 2vw, 34px) 38px;
    background: radial-gradient(circle at 52% 30%, #fff 0%, #f8fbff 53%, #edf4fc 100%);
}
.login-card {
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - 116px);
    overflow: auto;
    border-radius: 15px;
    padding: clamp(14px, 2vh, 24px) clamp(20px, 2vw, 32px) 20px;
    box-shadow: 0 12px 38px rgba(36,60,91,.07);
    scrollbar-width: thin;
}
.login-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto clamp(8px, 1.4vh, 16px);
}
.login-brand-mark img { display: block; width: min(250px, 80%); height: auto; object-fit: contain; }
.login-heading h2 { font-size: clamp(23px, 1.7vw, 30px); }
.login-heading p { margin: 7px 0 clamp(16px, 2.6vh, 27px); font-size: clamp(12px, .95vw, 15px); line-height: 1.4; }
.form-group { margin-bottom: clamp(13px, 2vh, 20px); }
.form-group label { margin-bottom: 7px; font-size: 13px; }
.input-wrap { height: clamp(44px, 6.2vh, 52px); }
.input-icon { width: 43px; font-size: 19px; }
.input-wrap input { font-size: 14px; }
.login-options { margin: 0 0 clamp(15px, 2.2vh, 23px); font-size: 12px; }
.sign-in-button { height: clamp(47px, 6.5vh, 56px); font-size: 16px; }
.sign-in-arrow { width: 27px; height: 27px; font-size: 18px; }
.social-divider { margin: clamp(16px, 2.5vh, 24px) 0 clamp(12px, 1.8vh, 18px); gap: 10px; }
.social-divider em { font-size: 12px; white-space: nowrap; }
.social-login { gap: 10px; }
.social-button { min-width: 0; height: clamp(42px, 5.8vh, 50px); padding: 0 6px; gap: 7px; font-size: clamp(10px, .8vw, 12px); white-space: nowrap; }
.google-g { font-size: 20px; }
.login-version { bottom: 10px; gap: 8px; font-size: 10px; }
.login-version i { height: 11px; }
.language-selector { top: 13px; right: 18px; height: 35px; min-width: 108px; font-size: 12px; gap: 8px; }

@media (max-height: 760px) and (min-width: 1101px) {
    .login-form-panel { padding-top: 48px; padding-bottom: 30px; }
    .login-card { max-height: calc(100dvh - 96px); padding-top: 10px; padding-bottom: 12px; }
    .login-brand-mark { margin-bottom: 5px; }
    .login-brand-mark img { width: min(205px, 72%); }
    .login-heading p { margin-bottom: 13px; }
    .form-group { margin-bottom: 11px; }
    .social-divider { margin-top: 12px; margin-bottom: 10px; }
    .login-version { bottom: 6px; }
}
@media (max-width: 1100px) {
    body.druvea-login { overflow: auto; }
    .login-page { display: block; height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
    .login-brand-panel { display: none; }
    .login-form-panel { min-height: 100vh; min-height: 100dvh; height: auto; overflow: visible; padding: 64px 20px 42px; }
    .login-card { width: min(480px, 100%); max-height: none; margin: 0 auto; padding: 22px 28px; }
    .login-brand-mark img { width: min(245px, 78%); }
    .login-version { position: static; transform: none; justify-content: center; margin: 14px auto 0; white-space: normal; text-align: center; flex-wrap: wrap; }
}
@media (max-width: 620px) {
    .login-form-panel { padding: 62px 13px 22px; }
    .login-card { border-radius: 15px; padding: 20px 20px 22px; }
    .social-login { grid-template-columns: 1fr; }
    .social-button { font-size: 13px; }
    .login-version { font-size: 9px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-slide { transition: none; }
}
