body:has(.ecw-auth-loading[aria-hidden="false"]) {
    overflow: hidden;
}
.ecw-photo-auth {
    text-align: center;
    position: relative;
}

.ecw-auth-state {
    display: none;
    visibility: hidden;
}

.ecw-auth-state.is-active {
    display: block;
    visibility: visible;
}

.ecw-auth-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}

.ecw-auth-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 130%;
    margin-bottom: 24px;
}
.ecw-auth-title--default {
    font-variation-settings: "opsz" auto;
    background: linear-gradient(270deg, #9815BC 0%, #7380F9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ecw-auth-title--danger {
    color: #ff2d2d;
}

.ecw-auth-title--success {
    color: #1DB954;
}

.ecw-auth-title--notfound {
    color: #636363;
}

.ecw-auth-note {
    max-width: 548px;
    margin: 48px auto 0;
    color: #121821;
}

.ecw-auth-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 10px 0 0;
}

.ecw-auth-links a {
    color: #132181;
    text-decoration: underline;
    text-underline-offset: 5px;
}
.ecw-auth-links a:hover {
    transform: scale(1.03);
    color: #070931;
}
.ecw-auth-loading {
    position: fixed;
    inset: 0 0 0 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    pointer-events: all;

}

.ecw-auth-loading.is-active {
    display: flex;
}

.ecw-auth-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #ccc;
    border-top-color: #6c63ff;
    animation: ecw-spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes ecw-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Upload button hover animation (gold theme) */
.ecw-photo-auth .button {
    display: inline-block;
    border-radius: 33px;
    border: 1px solid #03045e;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-out;
    z-index: 1;
    background: transparent;
    padding: 12px 32px;
    box-shadow: inset 0 0 0 0 #03045e;
}
.ecw-photo-auth .button:hover {
    box-shadow: inset 0 -100px 0 0 #03045e;
}

.ecw-photo-auth .button span {
    color: #03045e;
    font-size: 18px;
    font-weight: 400;
    text-transform: capitalize;
    transition: all 0.3s ease-in;
}

.ecw-photo-auth .button:hover span {
    color: #fff;
    transition: 0.5s;
}

/* Hide previous layered background elements when present */
.ecw-photo-auth .button .button-bg,
.ecw-photo-auth .button .button-bg-layers,
.ecw-photo-auth .button .button-bg-layer {
    display: none;
}

@media (max-width: 768px) {
    .ecw-auth-icon img {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
    }
    .ecw-auth-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    .ecw-photo-auth .button {
        padding: 6px 16px;
        line-height: 1.1;
        min-height: auto;
    }
    .ecw-photo-auth .button span {
        font-size: 13px;
    }
    .ecw-auth-note {
        max-width: 274px;
        font-size: 13px;
        margin-top: 24px;
    }
    .ecw-auth-links a {
        text-decoration: none;
        color: #fff;
        padding: 5px 16px;
        background-color: #070931;
        border-radius: 33px;
        font-size: 13px;
    }
}