body.wor-login-active {
    --wor-navy-950: #071427;
    --wor-navy-900: #0b2036;
    --wor-navy-800: #12294d;
    --wor-navy-700: #1e3e64;

    --wor-amber-400: #f5a94a;
    --wor-amber-500: #e8871e;

    --wor-slate-300: #9ab0cc;
    --wor-slate-400: #7a93b4;

    --wor-white: #ffffff;

    background: #f4f6f9;
}

body.wor-login-active .wor-login-stage {
    min-height: calc(100vh - 1px);
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(390px, 42%);
    background: #f4f6f9;
}

/* -----------------------------
   WOR HERO
------------------------------ */

.wor-login-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    padding:
        clamp(30px, 4vw, 58px)
        clamp(30px, 5vw, 70px);

    display: flex;
    flex-direction: column;

    color: var(--wor-white);

    background:
        radial-gradient(
            900px 600px at 78% 8%,
            rgba(232, 135, 30, .17),
            transparent 62%
        ),
        linear-gradient(
            155deg,
            var(--wor-navy-950) 0%,
            var(--wor-navy-900) 43%,
            var(--wor-navy-800) 77%,
            var(--wor-navy-700) 100%
        );
}

.wor-hex-field {
    position: absolute;
    inset: 0;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'%3E%3Cpath d='M42 0 L84 24 L84 72 L42 96 L0 72 L0 24 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");

    background-size: 84px 96px;
    opacity: .55;
    pointer-events: none;
}

.wor-login-brand {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;
    gap: 14px;
}

.wor-login-mark {
    width: 47px;
    color: white;
}

.wor-login-mark svg {
    width: 100%;
    display: block;
}

.wor-login-wordmark {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .4px;
}

.wor-login-wordmark span {
    color: var(--wor-amber-500);
}

.wor-login-subtitle {
    margin-top: 6px;

    color: var(--wor-slate-300);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}

.wor-login-copy {
    position: relative;
    z-index: 3;

    margin-top: clamp(46px, 8vh, 94px);
    max-width: 610px;
}

.wor-eyebrow {
    margin-bottom: 14px;

    color: var(--wor-amber-400);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.wor-login-copy h1 {
    margin: 0;

    color: white;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.8px;
}

.wor-login-copy h1 span {
    color: var(--wor-amber-500);
}

.wor-login-copy p {
    max-width: 520px;

    margin: 21px 0 0;

    color: var(--wor-slate-300);

    font-size: 15px;
    line-height: 1.65;
}

/* -----------------------------
   LIVE OPERATIONAL SNAPSHOT
------------------------------ */

.wor-live-section {
    position: relative;
    z-index: 3;

    margin-top: clamp(34px, 6vh, 60px);

    max-width: 650px;
}

.wor-live-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 13px;

    color: var(--wor-slate-300);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
}

.wor-live-heading > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wor-live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #5dd39e;

    box-shadow:
        0 0 0 4px rgba(93, 211, 158, .12);
}

.wor-live-status {
    color: #5dd39e;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.wor-live-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.wor-live-card {
    min-height: 92px;

    padding: 15px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 12px;

    background:
        rgba(255,255,255,.055);

    backdrop-filter: blur(8px);
}

.wor-live-value {
    color: white;

    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.wor-live-label {
    margin-top: 10px;

    color: var(--wor-slate-300);

    font-size: 10.5px;
    line-height: 1.35;
}

.wor-live-caption {
    margin-top: 9px;

    color: var(--wor-slate-400);

    font-size: 9.5px;
}

/* -----------------------------
   PRODUCT FEATURES
------------------------------ */

.wor-feature-grid {
    position: relative;
    z-index: 3;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px 20px;

    max-width: 630px;

    margin-top: 31px;
}

.wor-feature {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.wor-feature-icon {
    flex: 0 0 37px;

    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(232,135,30,.46);

    border-radius: 10px;

    background:
        rgba(232,135,30,.09);

    color: white;
}

.wor-feature-icon svg {
    width: 18px;
    height: 18px;
}

.wor-feature-title {
    color: white;

    font-size: 12px;
    font-weight: 700;
}

.wor-feature-text {
    margin-top: 3px;

    color: var(--wor-slate-400);

    font-size: 10.5px;
    line-height: 1.4;
}

/* -----------------------------
   DECORATIVE RIG
------------------------------ */

.wor-rig {
    position: absolute;

    right: -55px;
    bottom: -45px;

    width: min(40%, 420px);

    opacity: .62;

    pointer-events: none;
}

.wor-flame {
    transform-origin: center bottom;

    animation:
        worFlare 2.6s ease-in-out infinite;
}

@keyframes worFlare {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform:
            scale(1.06, 1.12)
            translateY(-1px);

        opacity: .92;
    }
}

/* -----------------------------
   NATIVE FRAPPE AUTH PANEL
------------------------------ */

body.wor-login-active section.wor-native-auth {
    min-height: 100vh;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 34px;
}

body.wor-login-active .wor-auth-card {
    width: 100%;
    max-width: 420px;

    padding: 34px !important;

    border:
        1px solid rgba(7,20,39,.05);

    border-radius: 20px !important;

    box-shadow:
        0 24px 60px -20px
        rgba(7,20,39,.28) !important;

    background: white;
}

body.wor-login-active
.wor-auth-card
.page-card-head-text h4 {

    color: var(--wor-navy-900);

    font-size: 23px;

    font-weight: 750;
}

body.wor-login-active
.wor-auth-card
.form-control {

    min-height: 44px;

    border-radius: 8px;
}

body.wor-login-active
.wor-auth-card
.form-control:focus {

    border-color:
        var(--wor-amber-500);

    box-shadow:
        0 0 0 3px
        rgba(232,135,30,.14);
}

body.wor-login-active
.wor-auth-card
.btn-primary {

    min-height: 44px;

    border: 0;

    border-radius: 8px;

    color: white;

    background:
        linear-gradient(
            180deg,
            var(--wor-amber-400),
            var(--wor-amber-500)
        );

    font-weight: 700;

    box-shadow:
        0 9px 22px -8px
        rgba(196,106,14,.52);
}

/* Frappe already provides password toggle logic.
   We only polish its appearance. */

body.wor-login-active
.toggle-password {

    cursor: pointer;
}

/* -----------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 1100px) {

    body.wor-login-active
    .wor-login-stage {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(370px, 43%);
    }

    .wor-live-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    body.wor-login-active
    .wor-login-stage {

        display: block;
    }

    .wor-login-hero {
        min-height: auto;

        padding-bottom: 48px;
    }

    body.wor-login-active
    section.wor-native-auth {

        min-height: auto;

        padding:
            40px 20px 56px;
    }

    .wor-rig {
        opacity: .28;
        width: 60%;
    }
}

@media (max-width: 520px) {

    .wor-login-hero {
        padding:
            26px 21px 37px;
    }

    .wor-login-copy h1 {
        font-size: 34px;
    }

    .wor-live-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .wor-feature-grid {
        grid-template-columns: 1fr;
    }

    body.wor-login-active
    .wor-auth-card {

        padding: 25px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .wor-flame {
        animation: none;
    }
}
