#peptira-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    font-family: var(--peptira-font, 'Segoe UI', Arial, sans-serif);
    color: var(--peptira-text-color, #fff);
    overflow: hidden;
}

.peptira-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.peptira-overlay-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.peptira-gate-scroll {
    position: relative;
    z-index: 2;
    height: 100%;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* ---------- Card ---------- */

.peptira-gate-box {
    width: var(--peptira-box-width-desktop, 420px);
    max-width: 100%;
    text-align: center;
    padding: var(--peptira-box-padding, 40px) 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
    animation: peptiraCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes peptiraCardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .peptira-gate-box { width: var(--peptira-box-width-tablet, 90%); padding: var(--peptira-box-padding, 32px) 24px; }
}

@media (max-width: 480px) {
    .peptira-gate-box { width: var(--peptira-box-width-mobile, 95%); border-radius: 18px; padding: 28px 18px; }
}

.peptira-gate-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--peptira-heading-color, #fff);
}

.peptira-gate-logo-img {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    height: auto;
}

.peptira-gate-notice {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 28px;
    opacity: 0.85;
}

/* ---------- Sliding pill tabs ---------- */

.peptira-gate-tabs {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 5px;
    margin-bottom: 28px;
}

.peptira-gate-tabs::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 5px);
    border-radius: 999px;
    background: var(--peptira-tab-active, #ffffff);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.peptira-gate-tabs[data-active="register"]::before {
    transform: translateX(100%);
}

.peptira-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    padding: 10px 0;
    font-family: inherit;
    border-radius: 999px;
    transition: color 0.25s ease;
}

.peptira-tab.active { color: #1b1b23; }
.peptira-tab-text-light .peptira-tab.active { color: #ffffff; }
.peptira-tab-text-dark .peptira-tab.active { color: #14141c; }

/* ---------- Form ---------- */

.peptira-gate-form {
    text-align: left;
    animation: peptiraFadeUp 0.35s ease;
}

@keyframes peptiraFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.peptira-gate-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin: 16px 0 7px;
    color: var(--peptira-text-color, #fff);
    opacity: 0.9;
}

.peptira-gate-form label span { color: #7ea0ff; }

.peptira-gate-form input[type="text"],
.peptira-gate-form input[type="email"],
.peptira-gate-form input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    font-size: 15px;
    box-sizing: border-box;
    background: var(--peptira-input-bg, #eceef5);
    color: var(--peptira-input-text, #111);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.peptira-gate-form input:focus {
    outline: none;
    border-color: var(--peptira-btn-bg, #2b3fe0);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--peptira-btn-bg, #2b3fe0) 22%, transparent);
    transform: translateY(-1px);
}

/* ---------- Custom checkbox ---------- */

.peptira-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
    margin: 16px 0 !important;
    cursor: pointer;
    opacity: 0.9;
}

.peptira-checkbox input {
    -webkit-appearance: none;
    appearance: none;
    width: 19px !important;
    height: 19px;
    min-width: 19px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.peptira-checkbox input:checked {
    background: var(--peptira-btn-bg, #2b3fe0);
    border-color: var(--peptira-btn-bg, #2b3fe0);
}

.peptira-checkbox input:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Submit button ---------- */

.peptira-gate-submit {
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    background: var(--peptira-btn-bg, #2b3fe0);
    background-image: linear-gradient(135deg, var(--peptira-btn-bg, #2b3fe0), color-mix(in srgb, var(--peptira-btn-bg, #2b3fe0) 65%, white));
    color: var(--peptira-btn-text, #fff);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 24px -8px var(--peptira-btn-bg, #2b3fe0);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.peptira-gate-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px var(--peptira-btn-bg, #2b3fe0);
    filter: brightness(1.06);
}

.peptira-gate-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 14px -6px var(--peptira-btn-bg, #2b3fe0);
}

.peptira-gate-submit:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.peptira-gate-submit.is-loading {
    background-image: linear-gradient(90deg, var(--peptira-btn-bg, #2b3fe0) 0%, color-mix(in srgb, var(--peptira-btn-bg, #2b3fe0) 60%, white) 50%, var(--peptira-btn-bg, #2b3fe0) 100%);
    background-size: 200% 100%;
    animation: peptiraShimmer 1.1s linear infinite;
}

@keyframes peptiraShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Message banner ---------- */

.peptira-gate-msg {
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 16px;
    animation: peptiraFadeUp 0.25s ease;
}

.peptira-gate-msg.error {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid #ff5050;
    color: #ffdada;
}

.peptira-gate-msg.success {
    background: rgba(80, 220, 120, 0.15);
    border: 1px solid #4bd07a;
    color: #d6ffe4;
}

/* ---------- Shape divider ---------- */

.peptira-shape-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--peptira-shape-height, 80px);
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}

.peptira-shape-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

body.peptira-gate-locked {
    overflow: hidden;
}
