/* Octolab Auth Popup */
.oct-auth {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.oct-auth.is-open {
    display: flex;
}
.oct-auth__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.oct-auth__card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #121218;
    border-radius: 28px;
    padding: 40px 40px 32px;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(122, 92, 255, 0.9), 0 0 60px 0 rgba(122, 92, 255, 0.35), 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.oct-auth__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../images/octoman-watermark.png) right top / 60% no-repeat;
    opacity: 0.06;
    pointer-events: none;
}
.oct-auth__card--compact {
    max-width: 560px;
    padding: 32px 36px 32px;
}

.oct-auth__close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}
.oct-auth__close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.oct-auth__title {
    font-family: inherit;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin: 0 44px 26px 0;
    text-transform: uppercase;
    color: #fff;
}
.oct-auth__card--compact .oct-auth__title {
    font-size: 22px;
    margin-bottom: 12px;
}
.oct-auth__desc {
    color: #b8b8c4;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
}

.oct-auth__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

/* Fields */
.oct-field {
    position: relative;
    display: flex;
    flex-direction: column;
}
.oct-field label {
    position: absolute;
    left: 0;
    top: 6px;
    color: #8a8a95;
    font-size: 14px;
    pointer-events: none;
    transition: transform 0.15s, color 0.15s, font-size 0.15s;
    transform-origin: left top;
}
.oct-field input {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 26px 0 8px;
    font-size: 15px;
    outline: none;
    border-radius: 0;
    width: 100%;
}
.oct-field input:focus {
    border-bottom-color: #7a5cff;
}
.oct-field input:focus + label,
.oct-field input:not(:placeholder-shown) + label,
.oct-field--filled label {
    transform: translateY(-14px) scale(0.82);
    color: #b8b8c4;
}
.oct-field--pass input {
    padding-right: 36px;
}
.oct-field__eye {
    position: absolute;
    right: 0;
    top: 26px;
    background: transparent;
    border: 0;
    color: #b8b8c4;
    cursor: pointer;
    padding: 4px;
    display: flex;
}
.oct-field__eye:hover {
    color: #fff;
}
.oct-field__error {
    display: none;
    color: #ff6b7a;
    font-size: 12px;
    margin-top: 6px;
}
.oct-field.is-error input {
    border-bottom-color: #ff6b7a;
}
.oct-field.is-error .oct-field__error {
    display: block;
}

/* Row with remember + forgot */
.oct-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

/* Custom checkbox */
.oct-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e8e8ee;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}
.oct-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.oct-check span {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.oct-check input:checked + span {
    background: #7a5cff;
    border-color: #7a5cff;
}
.oct-check input:checked + span::after {
    content: "";
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translate(-1px, -1px);
}

.oct-auth__link {
    color: #b8b8c4;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.oct-auth__link:hover {
    color: #fff;
}

/* Buttons */
.oct-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.oct-btn:active {
    transform: scale(0.99);
}
.oct-btn--primary {
    background: #7a5cff;
    color: #fff;
    margin-top: 8px;
}
.oct-btn--primary:hover {
    background: #6a4cf0;
}
.oct-btn--google {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.oct-btn--google:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.oct-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.oct-btn--ghost:hover {
    border-color: #fff;
}

.oct-auth__aux {
    text-align: center;
    color: #b8b8c4;
    font-size: 13px;
    margin: 4px 0 0;
}
.oct-auth__aux a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.oct-auth__btns {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.oct-auth__btns .oct-btn {
    flex: 1;
}

/* Global form error */
.oct-auth__form.is-loading {
    pointer-events: none;
    opacity: 0.7;
}
.oct-form-error {
    color: #ff6b7a;
    font-size: 13px;
    text-align: center;
    margin: 0;
}

/* Mobile */
@media (max-width: 560px) {
    .oct-auth {
        padding: 0;
        align-items: flex-end;
    }
    .oct-auth__card {
        border-radius: 24px 24px 0 0;
        padding: 32px 22px 28px;
        max-width: 100%;
    }
    .oct-auth__title {
        font-size: 18px;
        margin-right: 36px;
    }
    .oct-auth__card {
        box-shadow: 0 -2px 0 rgba(122, 92, 255, 0.9), 0 -20px 60px rgba(122, 92, 255, 0.2);
    }
    .oct-auth__btns {
        flex-direction: column;
    }
}

body.oct-auth-open {
    overflow: hidden;
}

/* Hide login button for logged-in users */
body.logged-in .elementor-element-791ed9c {
    display: none !important;
}
