.template-sample-preview { padding-top: 66px; }
.template-preview-bar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #dce5f0;
    box-shadow: 0 5px 24px #183c5f14;
    color: #52677e;
    display: flex;
    font: 13px/1.4 Arial, sans-serif;
    gap: 24px;
    height: 66px;
    inset: 0 0 auto;
    justify-content: space-between;
    padding: 10px clamp(18px, 4vw, 64px);
    position: fixed;
    z-index: 10000;
}
.template-preview-bar a { text-decoration: none; }
.template-preview-context, .template-preview-action { align-items: center; display: flex; gap: 18px; }
.template-preview-context > a { color: #285f91; font-weight: 700; }
.template-preview-context strong { color: #172b45; }
.template-preview-divider { background: #dce5f0; height: 24px; width: 1px; }
.template-preview-action > span { color: #728399; }
.template-preview-action > a, .template-preview-action > button {
    background: linear-gradient(135deg, #2757a4, #078ebd);
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 12px 18px;
}
.template-preview-action > a:hover, .template-preview-action > button:hover { filter: brightness(.96); }
.template-preview-auth { background: transparent; border: 0; max-height: calc(100dvh - 30px); max-width: 500px; padding: 0; width: calc(100% - 30px); }
.template-preview-auth::backdrop { background: #10273e9c; backdrop-filter: blur(5px); }
.template-preview-auth-card { background: #fff; border-radius: 16px; box-shadow: 0 30px 100px #10273e42; color: #52677e; font: 14px/1.5 Arial, sans-serif; max-height: calc(100dvh - 30px); overflow-y: auto; padding: 38px; position: relative; }
.template-preview-auth-close { background: #f1f5f9; border: 0; border-radius: 50%; color: #405a75; cursor: pointer; font-size: 22px; height: 34px; position: absolute; right: 18px; top: 18px; width: 34px; }
.template-preview-auth-eyebrow { color: #1476b6 !important; font-size: 10px !important; font-weight: 800; letter-spacing: .15em; margin: 0 45px 14px 0 !important; }
.template-preview-auth h2 { color: #172b45; font: 700 32px/1.15 Arial, sans-serif; margin: 0 45px 10px 0; }
.template-preview-auth section > p { color: #718297; margin: 0 0 25px; }
.template-preview-auth label { color: #40566e; display: block; font-size: 12px; font-weight: 700; margin: 0 0 15px; }
.template-preview-auth input:not([type="checkbox"]) { background: #fff; border: 1px solid #cfdbe7; border-radius: 7px; color: #1d334c; display: block; font: 14px Arial, sans-serif; margin-top: 7px; padding: 12px 13px; width: 100%; }
.template-preview-auth label small { color: #7e8da0; display: block; font-size: 10px; font-weight: 400; margin-top: 5px; }
.template-preview-auth .password-field { position: relative; }
.template-preview-auth .password-field > input { padding-right: 58px; }
.template-preview-auth .password-visibility-toggle { align-items: center; background: transparent; border: 0; color: #617891; cursor: pointer; display: flex; height: 32px; justify-content: center; padding: 6px; position: absolute; right: 7px; top: 29px; width: 32px; }
.template-preview-auth .password-visibility-toggle svg { fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 19px; }
.template-preview-auth-submit { background: linear-gradient(135deg, #2757a4, #078ebd); border: 0; border-radius: 7px; color: #fff; cursor: pointer; font: 700 13px Arial, sans-serif; margin-top: 5px; padding: 14px 18px; width: 100%; }
.template-preview-auth-switch { align-items: center; display: flex; gap: 18px; justify-content: center; margin: 22px 0 0 !important; }
.template-preview-auth-switch button { background: none; border: 0; color: #126cad; cursor: pointer; font: 700 12px Arial, sans-serif; padding: 0; }
.template-preview-remember { align-items: center; display: flex !important; gap: 8px; font-weight: 400 !important; }
.template-preview-remember input { margin: 0; width: auto; }
.template-preview-auth-error, .template-preview-auth-status { border-radius: 7px; font-size: 12px; margin-bottom: 18px; padding: 11px 13px; }
.template-preview-auth-error { background: #fff0ed; color: #9d3f36; }
.template-preview-auth-status { background: #edf8ee; color: #397344; }
.template-preview-auth .auth-divider { align-items: center; color: #8b98a8; display: flex; font-size: 10px; gap: 10px; margin: 20px 0 13px; }
.template-preview-auth .auth-divider::before, .template-preview-auth .auth-divider::after { background: #dce4ec; content: ''; flex: 1; height: 1px; }
.template-preview-auth .social-auth-options { display: grid; gap: 9px; grid-template-columns: repeat(2, 1fr); }
.template-preview-auth .social-auth-button { align-items: center; border: 1px solid #d5e0ea; border-radius: 7px; color: #3c536b; display: flex; font-size: 11px; font-weight: 700; gap: 8px; justify-content: center; min-height: 42px; padding: 9px; text-decoration: none; }
.template-preview-auth .social-auth-button svg { height: 17px; width: 17px; }
.template-preview-auth .social-auth-button.disabled { opacity: .5; }

@media (max-width: 650px) {
    .template-sample-preview { padding-top: 60px; }
    .template-preview-bar { height: 60px; padding: 8px 12px; }
    .template-preview-context > span:not(.template-preview-divider),
    .template-preview-divider,
    .template-preview-action > span { display: none; }
    .template-preview-context, .template-preview-action { gap: 8px; }
    .template-preview-action > a, .template-preview-action > button { padding: 10px 13px; }
    .template-preview-auth-card { padding: 32px 22px 26px; }
    .template-preview-auth .social-auth-options { grid-template-columns: 1fr; }
}
