/* ============================================================
   PT-74 — Login + Home (/access) on the Mark C brand system.
   Scope: every rule lives under body.pt-deck, which the
   main-login layout adds only for site/login and access/index,
   so sibling pages on the same layout keep the legacy look.
   Loads after the legacy stylesheets and overrides them.
   ============================================================ */

body.pt-deck {
    margin: 0;
    padding: 0 !important;
    min-height: 100vh;
    background: #0f1728 !important;
    background-image:
        radial-gradient(ellipse 900px 480px at 50% -120px, #1d2c4c 0%, rgba(29, 44, 76, 0) 70%),
        radial-gradient(ellipse 700px 420px at 50% 115%, #16223c 0%, rgba(22, 34, 60, 0) 72%) !important;
    color: #cfdcf0;
    font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- brand lockup (replaces images/Logo.png) ---------- */
.pt-deck .logo-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 54px 0 34px;
    margin: 0;
    width: auto;
    float: none;
    /* ≤1200px legacy rule paints #fff + the clouds jpg here */
    background: none !important;
}
.pt-deck .logo-login-page img { display: none; }
.pt-deck .logo-login-page::before {
    content: "";
    width: 46px;
    height: 46px;
    flex: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><rect width="48" height="48" rx="12" fill="%231c2a44"/><rect x="10" y="21" width="6.5" height="17" rx="3.2" fill="%235b8fd6"/><rect x="20.7" y="17.5" width="6.5" height="20.5" rx="3.2" fill="%235b8fd6"/><circle cx="24" cy="10.5" r="3.8" fill="%23e34948"/><rect x="31.5" y="21" width="6.5" height="17" rx="3.2" fill="%235b8fd6"/></svg>') center / contain no-repeat;
}
.pt-deck .logo-login-page::after {
    content: "pushtowers";
    font-size: 27px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
}

/* ---------- login card ---------- */
.pt-deck #signin-section {
    width: 100%;
    max-width: 396px;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto;
    padding: 30px 30px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 22px 60px -18px rgba(0, 0, 0, .65);
    float: none;
    overflow: hidden; /* contain the floated under-actions columns */
}
.pt-deck #signin-section .form-group { margin: 0 0 14px; }
.pt-deck #signin-section .form-group .col-sm-12,
.pt-deck #signin-section .form-group [class*="col-"] {
    position: relative;
    padding-left: 0;
    padding-right: 0;
    float: none;
    width: 100%;
    text-align: left;
}
.pt-deck #signin-section input.form-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-size: 14.5px;
    font-family: inherit !important;
    color: #13233a;
    background: #f4f6fa !important;
    border: 1px solid #dbe2ee;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.pt-deck #signin-section input.form-control:focus {
    outline: none;
    background: #fff !important;
    border-color: #5b8fd6;
    box-shadow: 0 0 0 3px rgba(91, 143, 214, .22);
}
.pt-deck #signin-section input.form-control::placeholder { color: #8ba0bf; }

.pt-deck #signin-section .toggleEye {
    position: absolute;
    top: 23px; /* half the 46px input, not 50% of the wrapper (errorMessage adds height) */
    right: 12px;
    transform: translateY(-50%);
    margin: 0;
    line-height: 0;
    cursor: pointer;
}
.pt-deck #signin-section .toggleEye svg {
    width: 20px;
    height: 20px;
    /* legacy custom.css absolutely-positions the svg out of the <i> */
    position: static;
    margin: 0;
    display: block;
}
.pt-deck #signin-section .toggleEye svg path { stroke: #8ba0bf; }
.pt-deck #signin-section .toggleEye:hover svg path { stroke: #13233a; }
/* keep the eye clear of the text */
.pt-deck #signin-section input#LoginForm_password { padding-right: 42px; }

.pt-deck #signin-section .errorMessage {
    color: #e34948;
    font-size: 12px;
    padding: 4px 2px 0;
    text-align: left;
}

.pt-deck #signin-section .checkbox { margin: 0; padding: 0; min-height: 0; }
.pt-deck #signin-section .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    font-size: 13px;
    color: #51617c;
}
.pt-deck #signin-section .cb_remember_me {
    position: static;
    margin: 0;
    width: 15px;
    height: 15px;
    accent-color: #5b8fd6;
}
.pt-deck #signin-section .lb_remember_me {
    margin: 0;
    font-weight: 500;
    color: #51617c;
    text-transform: none;
    font-size: 13px;
}

.pt-deck #signin-section .btn-login {
    width: 100%;
    height: 46px;
    background: #5b8fd6 !important;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 22px -10px rgba(91, 143, 214, .8);
    transition: background .15s, transform .1s;
}
.pt-deck #signin-section .btn-login:hover,
.pt-deck #signin-section .btn-login:focus {
    background: #4a7dc4 !important;
    color: #fff;
}
.pt-deck #signin-section .btn-login:active { transform: translateY(1px); }

.pt-deck #signin-section .under-actions { margin-bottom: 0; }
.pt-deck #signin-section .under-actions [class*="col-"] { width: 50%; float: left; }
.pt-deck #signin-section .under-actions .text-left { text-align: left; }
.pt-deck #signin-section .under-actions .text-right { text-align: right; }
.pt-deck #signin-section .under-actions a.title-bt-lg {
    color: #6b83a8;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    display: inline-block;
}
.pt-deck #signin-section .under-actions a.title-bt-lg:hover { color: #5b8fd6; }

/* ---------- /access : shell ---------- */
.pt-deck .dv-panel-login,
.pt-deck #home_page {
    background: none !important;
    border: none;
    box-shadow: none;
    margin: 0 !important;
    padding: 0;
    width: auto;
    height: auto;
    min-height: 0;
}
.pt-deck .panel-login {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto;
    padding: 0;
    width: auto;
}

.pt-deck .logout-btn--home {
    position: fixed;
    top: 18px;
    left: 20px;
    font-size: 20px;
    color: #5f7395 !important;
    z-index: 1000;
    transition: color .15s;
}
.pt-deck .logout-btn--home:hover { color: #cfdcf0 !important; }

.pt-deck .readtutorial {
    top: 16px;
    right: 20px;
    width: 38px;
    height: 38px;
    border: 1px solid #24345a;
    border-radius: 50%;
    background: #16213a;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pt-deck .readtutorial a { color: #5f7395 !important; font-size: 17px; line-height: 1; }
.pt-deck .readtutorial a:hover { color: #cfdcf0 !important; }

/* ---------- /access : app switcher ---------- */
.pt-deck .acc_wl_member {
    width: auto;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: none;
}
.pt-deck #list_user_slider { margin-bottom: 6px; }
.pt-deck #list_user_slider .slick-slide { padding: 14px 0 10px; }
.pt-deck #list_user_slider .slick-slide img {
    display: inline-block;
    width: 88px !important;
    height: 88px !important;
    border-radius: 22px;
    opacity: .38;
    transform: scale(.74);
    transition: transform .25s, opacity .25s, box-shadow .25s;
    cursor: pointer;
    background: #1c2a44;
}
.pt-deck #list_user_slider .slick-center img {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 3px #0f1728, 0 0 0 5px #5b8fd6, 0 18px 40px -14px rgba(0, 0, 0, .7);
}
.pt-deck #list_user_slider_for { max-width: 420px; margin: 0 auto; }
.pt-deck #list_user_slider_for .slick-slide { text-align: center; }
/* center mode leaks clipped edges of neighbouring names — hide them */
.pt-deck #list_user_slider_for .slick-slide:not(.slick-center) { opacity: 0; }
.pt-deck .uname_access {
    color: #fff !important;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
}
.pt-deck .slick-prev, .pt-deck .slick-next { z-index: 5; }
.pt-deck .slick-prev:before, .pt-deck .slick-next:before {
    color: #5f7395;
    opacity: 1;
    font-size: 22px;
}
.pt-deck .slick-prev:hover:before, .pt-deck .slick-next:hover:before { color: #cfdcf0; }
.pt-deck .slick-dots li button:before { color: #5f7395; }
.pt-deck .slick-dots li.slick-active button:before { color: #5b8fd6; }

.pt-deck .pt-switch-hint {
    display: block;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #5f7395;
    margin: 26px 0 0;
}

/* ---------- /access : tower cards ----------
   Selectors are ID-anchored on purpose: legacy custom_desktops.css styles
   `#home_page #wrapper-towers` (absolute, display:table, airship27 font)
   and `#wrapper-towers .acc-tower-N`, and IDs out-rank plain classes. */
.pt-deck #wrapper-towers.pt-towers,
.pt-deck #home_page #wrapper-towers.pt-towers {
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    max-width: 880px;
    margin: 26px auto 0;
    padding: 0 24px 110px;
    background: none !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
}
.pt-deck #wrapper-towers .pt-tower,
.pt-deck #wrapper-towers .pt-tower.acc-tower-1,
.pt-deck #wrapper-towers .pt-tower.acc-tower-2,
.pt-deck #wrapper-towers .pt-tower.acc-tower-3 {
    width: auto;
    height: auto;
    display: block;
    margin: 0;
    font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}
.pt-deck .pt-tower {
    position: relative;
    flex: 1 1 0;
    max-width: 264px;
    background: #16213a;
    border: 1px solid #24345a;
    border-radius: 14px;
    padding: 20px 22px 18px;
    text-align: left;
    transition: border-color .18s, transform .18s, box-shadow .18s, opacity .18s;
}
.pt-deck .pt-tower:hover {
    border-color: #5b8fd6;
    transform: translateY(-3px);
    box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .75);
}
.pt-deck .pt-tower .pt-tno {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    background: #1c2a44;
    color: #8fa9cd;
    border-radius: 4px;
    padding: 2px 7px;
    margin-bottom: 12px;
}
.pt-deck #wrapper-towers .pt-tower a {
    display: block;
    font-family: inherit !important;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    color: #fff !important;
    text-decoration: none;
    background: none !important;
    text-indent: 0;
    width: auto;
    height: auto;
    margin: 0 0 5px;
    padding: 0;
    position: static;
    text-align: left;
    opacity: 1;
}
/* whole card is the click target — ::before, because ::after belongs to the
   show-badge count dot and the two rules would merge on the same element */
.pt-deck #wrapper-towers .pt-tower a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
}
.pt-deck .pt-tower .pt-tsub {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: #7d92b5;
}
.pt-deck .pt-tower .pt-plug {
    display: inline-block;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #eda100;
    border: 1px solid #7a5b10;
    border-radius: 3px;
    padding: 0 4px;
    margin-left: 4px;
    vertical-align: 1px;
}
/* towers struck out by the role JS (inline line-through) read as disabled */
.pt-deck .pt-tower:has(a[style*="line-through"]) { opacity: .42; }
.pt-deck .pt-tower:has(a[style*="line-through"]):hover {
    border-color: #24345a;
    transform: none;
    box-shadow: none;
}

/* feature-count badge (legacy show-badge) as a signal dot on the card */
.pt-deck #wrapper-towers .show-badge::after {
    height: 22px;
    width: 22px;
    bottom: auto;
    top: -8px;
    right: -8px;
    left: auto;
    line-height: 22px;
    font-size: 11.5px;
    background: #e34948;
    box-shadow: 0 0 0 3px #0f1728;
    position: absolute;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    font-weight: 700;
}

/* validation / billing banners */
.pt-deck .pt-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 640px;
    height: auto;
    padding: 9px 18px;
    background: #2b2410;
    border: 1px solid #7a5b10;
    border-radius: 10px;
    z-index: 10;
}
.pt-deck .pt-banner h4 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #eda100;
    font-family: inherit;
}

/* ---------- footer ---------- */
.pt-deck .dv-footer#footer-login {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: none !important;
    border: none;
    text-align: center;
    padding: 14px 0 16px;
    margin: 0;
    height: auto;
    z-index: 50;
}
.pt-deck .dv-footer#footer-login a.foot-link {
    color: #5f7395 !important;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    margin: 0 10px;
    float: none;
    display: inline-block;
    background: none !important;
    border: none !important;
    box-shadow: none;
    padding: 0;
    width: auto;
}
.pt-deck .dv-footer#footer-login a.foot-link:hover { color: #cfdcf0 !important; }

.pt-deck .scroll-top { display: none; }

/* ---------- PT-81: looping cloud drift ----------
   Two fixed parallax layers behind everything (negative z-index paints
   above the body canvas background but below all in-flow content).
   Seamless loop: each layer translates by exactly one background tile
   width, and the layer is one tile wider than the viewport so no gap
   opens mid-cycle. Transform-only animation so it stays on the
   compositor. */
body.pt-deck::before,
body.pt-deck::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    background-repeat: repeat-x;
    will-change: transform;
}
/* far layer — small dim clouds, slow */
body.pt-deck::before {
    width: calc(100vw + 1400px);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1400" height="800" viewBox="0 0 1400 800"><defs><radialGradient id="g" cx="50%" cy="50%" r="50%"><stop offset="0" stop-color="%23c4d8f4" stop-opacity=".5"/><stop offset=".5" stop-color="%23c4d8f4" stop-opacity=".22"/><stop offset="1" stop-color="%23c4d8f4" stop-opacity="0"/></radialGradient></defs><g fill="url(%23g)"><ellipse cx="210" cy="160" rx="130" ry="42"/><ellipse cx="164" cy="131" rx="65" ry="39"/><ellipse cx="249" cy="137" rx="59" ry="36"/><ellipse cx="720" cy="100" rx="100" ry="32"/><ellipse cx="685" cy="78" rx="50" ry="30"/><ellipse cx="750" cy="82" rx="45" ry="28"/><ellipse cx="1110" cy="240" rx="140" ry="45"/><ellipse cx="1061" cy="209" rx="70" ry="42"/><ellipse cx="1152" cy="215" rx="63" ry="39"/><ellipse cx="430" cy="440" rx="115" ry="37"/><ellipse cx="390" cy="415" rx="58" ry="35"/><ellipse cx="465" cy="419" rx="52" ry="32"/><ellipse cx="960" cy="570" rx="130" ry="42"/><ellipse cx="914" cy="541" rx="65" ry="39"/><ellipse cx="999" cy="547" rx="59" ry="36"/><ellipse cx="190" cy="660" rx="95" ry="30"/><ellipse cx="157" cy="639" rx="48" ry="29"/><ellipse cx="219" cy="643" rx="43" ry="27"/><ellipse cx="1290" cy="700" rx="80" ry="26"/><ellipse cx="1262" cy="682" rx="40" ry="24"/></g></svg>');
    background-size: 1400px 100%;
    opacity: .38;
    animation: pt-clouds-far 340s linear infinite;
}
/* near layer — bigger brighter clouds, faster */
body.pt-deck::after {
    width: calc(100vw + 2000px);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="2000" height="800" viewBox="0 0 2000 800"><defs><radialGradient id="g" cx="50%" cy="50%" r="50%"><stop offset="0" stop-color="%23cfe0f8" stop-opacity=".45"/><stop offset=".5" stop-color="%23cfe0f8" stop-opacity=".2"/><stop offset="1" stop-color="%23cfe0f8" stop-opacity="0"/></radialGradient></defs><g fill="url(%23g)"><ellipse cx="360" cy="210" rx="230" ry="74"/><ellipse cx="280" cy="159" rx="115" ry="69"/><ellipse cx="429" cy="166" rx="104" ry="64"/><ellipse cx="1180" cy="130" rx="200" ry="64"/><ellipse cx="1110" cy="90" rx="100" ry="58"/><ellipse cx="1240" cy="95" rx="90" ry="54"/><ellipse cx="780" cy="510" rx="250" ry="80"/><ellipse cx="693" cy="455" rx="125" ry="75"/><ellipse cx="855" cy="462" rx="113" ry="70"/><ellipse cx="1660" cy="630" rx="215" ry="69"/><ellipse cx="1585" cy="583" rx="108" ry="65"/><ellipse cx="1725" cy="589" rx="97" ry="60"/></g></svg>');
    background-size: 2000px 100%;
    opacity: .55;
    animation: pt-clouds-near 180s linear infinite;
}
@keyframes pt-clouds-far  { to { transform: translateX(-1400px); } }
@keyframes pt-clouds-near { to { transform: translateX(-2000px); } }
/* the original had static clouds — that IS the reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
    body.pt-deck::before,
    body.pt-deck::after { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .pt-deck #wrapper-towers.pt-towers,
    .pt-deck #home_page #wrapper-towers.pt-towers {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .pt-deck #wrapper-towers .pt-tower,
    .pt-deck #wrapper-towers .pt-tower.acc-tower-1,
    .pt-deck #wrapper-towers .pt-tower.acc-tower-2,
    .pt-deck #wrapper-towers .pt-tower.acc-tower-3 {
        width: 100%;
        max-width: 396px;
        flex: none;
    }
}
@media (max-width: 480px) {
    .pt-deck .logo-login-page { padding-top: 38px; }
    .pt-deck .logo-login-page::after { font-size: 22px; }
    .pt-deck .logo-login-page::before { width: 38px; height: 38px; }
    .pt-deck #signin-section {
        max-width: none;
        margin: 0 16px;
        padding: 22px 18px 18px;
    }
    .pt-deck #signin-section .under-actions [class*="col-"] {
        width: 100%;
        text-align: left;
        margin-bottom: 4px;
    }
    .pt-deck #signin-section .under-actions .text-right { text-align: left; }
    .pt-deck #list_user_slider .slick-slide img { width: 68px !important; height: 68px !important; }
}
