:root {
    --vtg-panel-opacity: .96;
    --vtg-overlay-opacity: .06;
}

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

body.vtg-custom-login-page,
body.login {
    margin: 0;
    min-height: 100vh;
    background: #07568c !important;
    color: #172033;
}

body.vtg-custom-login-page {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Hide elements injected by older VTG login plugins if they remain active. */
#vtg-lsv-stage,
#vtg-login-slideshow,
#vtg-lsv-video-toggle {
    display: none !important;
}

#vtg-lmm-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #07568c;
}

.vtg-lmm-media-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .85s ease, visibility .85s ease, transform 3s ease;
    transform: scale(1.025);
    z-index: 1;
}

.vtg-lmm-media-item.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.vtg-lmm-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #07568c;
}

.vtg-lmm-video {
    object-fit: contain;
    background: #000;
}

#vtg-lmm-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0, 0, 0, var(--vtg-overlay-opacity));
    pointer-events: none;
}

#vtg-lmm-play-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 50;
    border: 0;
    border-radius: 8px;
    padding: 13px 18px;
    background: rgba(3, 48, 91, .96);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
}

#vtg-lmm-play-toggle:hover,
#vtg-lmm-play-toggle:focus {
    background: #0a5db4;
    outline: 3px solid rgba(255, 255, 255, .95);
    outline-offset: 2px;
}

.vtg-login-shell,
body.login #login {
    position: relative;
    z-index: 20;
    width: 490px;
    max-width: calc(100vw - 34px);
    margin: auto;
    padding: 0;
    box-sizing: border-box;
}

.vtg-login-logo-wrap,
body.login #login h1,
body.login #login .wp-login-logo {
    display: flex;
    justify-content: center;
    margin: 0 0 14px;
}

.vtg-login-logo-link,
body.login #login h1 a,
body.login #login .wp-login-logo a {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    height: 150px !important;
    margin: 0 auto !important;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, .22) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
    backdrop-filter: blur(5px);
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.vtg-login-card,
body.login form {
    margin: 0 !important;
    padding: 28px !important;
    border: 1px solid rgba(255, 255, 255, .62) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, var(--vtg-panel-opacity)) !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .28) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.vtg-login-notice,
body.login #login_error,
body.login .message,
body.login .success {
    margin: 0 0 14px !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-left: 4px solid #2271b1 !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .20) !important;
    box-sizing: border-box;
}

.vtg-login-notice.is-error {
    border-left-color: #d63638 !important;
}

.vtg-login-label,
body.login label {
    display: block;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,.85);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 7px;
}

.vtg-login-input,
body.login .input,
body.login input[type="text"],
body.login input[type="password"] {
    width: 100%;
    min-height: 48px;
    margin: 0 0 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 5px;
    background: rgba(255, 255, 255, .78);
    font-size: 18px;
    box-sizing: border-box;
}

.vtg-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.vtg-remember {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    font-weight: 500 !important;
}

.vtg-remember input,
body.login input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.vtg-login-submit,
body.login .button-primary {
    min-height: 44px !important;
    padding: 0 24px !important;
    border: 1px solid #104fc0 !important;
    border-radius: 5px !important;
    background: #1554c0 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.vtg-login-submit:hover,
.vtg-login-submit:focus,
body.login .button-primary:hover,
body.login .button-primary:focus {
    background: #0c47a9 !important;
    border-color: #0c47a9 !important;
}

.vtg-login-links,
body.login #nav,
body.login #backtoblog {
    margin: 18px 0 0 !important;
    text-align: center;
}

.vtg-login-links a,
body.login #nav a,
body.login #backtoblog a {
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .9);
}

.vtg-login-links a:hover,
.vtg-login-links a:focus,
body.login #nav a:hover,
body.login #nav a:focus,
body.login #backtoblog a:hover,
body.login #backtoblog a:focus {
    text-decoration: underline;
}

#vtg-lmm-counter {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 50;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(0, 35, 72, .76);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.vtg-preview-badge {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 55;
    padding: 10px 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .78);
    color: #0b4f96;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

@media (max-width: 640px) {
    body.vtg-custom-login-page,
    body.login {
        align-items: flex-start;
        padding: 80px 15px 65px;
        box-sizing: border-box;
    }

    .vtg-login-logo-link,
    body.login #login h1 a,
    body.login #login .wp-login-logo a {
        height: 115px !important;
        max-width: 330px !important;
    }

    .vtg-login-card,
    body.login form {
        padding: 21px !important;
    }

    #vtg-lmm-play-toggle {
        top: 12px;
        left: 12px;
        padding: 10px 13px;
        font-size: 13px;
    }

    #vtg-lmm-counter {
        bottom: 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vtg-lmm-media-item {
        transition: none;
        transform: none;
    }
}


/* Version 6.4 transparent glass login panel */
.vtg-login-card,
body.login form {
    background: rgba(255, 255, 255, var(--vtg-panel-opacity)) !important;
}

.vtg-login-input,
body.login .input,
body.login input[type="text"],
body.login input[type="password"] {
    background: rgba(255, 255, 255, .80) !important;
    color: #111827 !important;
    text-shadow: none !important;
}

.vtg-login-input:focus,
body.login .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    background: rgba(255, 255, 255, .94) !important;
    outline: 3px solid rgba(45, 119, 255, .55);
    outline-offset: 1px;
}

.vtg-remember,
body.login .forgetmenot label {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .9);
}

.vtg-login-logo-link,
body.login #login h1 a,
body.login #login .wp-login-logo a {
    background-color: rgba(255, 255, 255, .24) !important;
}


/* Version 6.5 — centered extra-clear glass login */
body.vtg-custom-login-page,
body.login {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
}

.vtg-login-shell,
body.login #login {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 460px !important;
    max-width: calc(100vw - 30px) !important;
    max-height: calc(100dvh - 30px) !important;
    overflow-y: auto;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 80 !important;
    scrollbar-width: thin;
}

.vtg-login-card,
body.login form {
    background: rgba(255, 255, 255, var(--vtg-panel-opacity)) !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .24) !important;
    backdrop-filter: blur(2px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(115%) !important;
}

.vtg-login-logo-link,
body.login #login h1 a,
body.login #login .wp-login-logo a {
    background-color: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
}

.vtg-login-input,
body.login .input,
body.login input[type="text"],
body.login input[type="password"] {
    background: rgba(255, 255, 255, .72) !important;
    color: #111827 !important;
    border: 1px solid rgba(255, 255, 255, .92) !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .16) !important;
}

.vtg-login-input:focus,
body.login .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    background: rgba(255, 255, 255, .94) !important;
}

.vtg-login-label,
body.login label,
.vtg-remember,
body.login .forgetmenot label {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .95) !important;
}

@media (max-width: 640px), (max-height: 650px) {
    .vtg-login-shell,
    body.login #login {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-height: calc(100dvh - 20px) !important;
        width: min(430px, calc(100vw - 20px)) !important;
    }

    .vtg-login-logo-link,
    body.login #login h1 a,
    body.login #login .wp-login-logo a {
        height: 105px !important;
    }

    .vtg-login-card,
    body.login form {
        padding: 19px !important;
    }
}
