/* Login / register — atomic-inspired shell (particles + glass card) */
html:has(body.page-auth-atomic) {
    background-color: #ffffff;
}

/* lmystyles.css sets animated page gradient on body — use solid white shell on login/register */
body.page-auth-atomic {
    background-color: #ffffff !important;
    background-image: none !important;
    background-size: auto !important;
    animation: none !important;
    overflow-y: auto;
}

.page-auth-atomic {
    background-color: #ffffff;
    color: #1a2332;
}

.page-auth-atomic #page,
.page-auth-atomic .site-content {
    background: transparent;
}

.page-auth-atomic #content.site-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 120px);
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.page-auth-atomic #content .container {
    max-width: 1120px;
    position: relative;
    z-index: 2;
}

.page-auth-atomic #primary,
.page-auth-atomic .content-area,
.page-auth-atomic .site-main {
    background: transparent;
}

.page-auth-atomic .hentry,
.page-auth-atomic .entry-content,
.page-auth-atomic .woocommerce {
    background: transparent;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* particles.js container (same role as admin #particles-js) */
#auth-particles-js {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#auth-particles-js canvas {
    display: block;
}

/* Orbital rings (atomic motif) */
.auth-atomic-orbit {
    position: fixed;
    top: 22%;
    left: 50%;
    width: min(520px, 95vw);
    height: min(520px, 95vw);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

.auth-atomic-orbit__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(214, 35, 35, 0.22);
    box-sizing: border-box;
}

.auth-atomic-orbit__ring:nth-child(2) {
    inset: 12%;
    border-color: rgba(40, 70, 120, 0.18);
    animation: auth-orbit-spin 48s linear infinite;
}

.auth-atomic-orbit__ring:nth-child(3) {
    inset: 26%;
    border-color: rgba(214, 35, 35, 0.16);
    animation: auth-orbit-spin 32s linear infinite reverse;
}

@keyframes auth-orbit-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-atomic-orbit__ring:nth-child(2),
.auth-atomic-orbit__ring:nth-child(3) {
    transform-origin: center;
}

.page-auth-atomic .auth-atomic-orbit__ring:nth-child(1) {
    animation: none;
}

/* Stage wraps card */
.auth-atomic-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72vh, 640px);
    padding: 0 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 20px;
    background: #253444;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 24px 48px rgba(0, 0, 0, 0.25),
        0 0 80px rgba(214, 35, 35, 0.08);
}

@supports not (backdrop-filter: blur(1px)) {
    .auth-card {
        background: #253444;
    }
}

.auth-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.75rem;
}

.auth-card__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #d62323);
    box-shadow: 0 0 12px rgba(214, 35, 35, 0.7);
}

.auth-card__title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    color: #fff;
}

.auth-card__subtitle {
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(232, 236, 241, 0.62);
}

.auth-card .form-row {
    margin: 0 0 1.1rem;
}

.auth-card .form-row-wide label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: rgba(232, 236, 241, 0.75);
}

.auth-card .form-row-wide label .required {
    color: #d62323;
    margin-left: 2px;
}

.auth-card .input-text {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1c2836;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-card .input-text::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.auth-card .input-text:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.auth-card .input-text:focus {
    outline: none;
    border-color: rgba(214, 35, 35, 0.55);
    box-shadow: 0 0 0 3px rgba(214, 35, 35, 0.15);
    background: #16202c;
}

.auth-card .button,
.auth-card input[type="submit"].button {
    width: 100%;
    height: 48px;
    margin-top: 0.25rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #e02828 0%, #b81818 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(214, 35, 35, 0.35);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.auth-card .button:hover,
.auth-card input[type="submit"].button:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 28px rgba(214, 35, 35, 0.42);
}

.auth-card .button:active,
.auth-card input[type="submit"].button:active {
    transform: translateY(1px);
}

.auth-card__footer {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: rgba(232, 236, 241, 0.55);
    text-align: center;
}

.auth-card__footer a {
    color: #ff9a9a;
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color 0.2s;
}

.auth-card__footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.page-auth-atomic #colophon {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
    .auth-atomic-orbit__ring:nth-child(2),
    .auth-atomic-orbit__ring:nth-child(3) {
        animation: none;
    }

    #auth-particles-js {
        opacity: 0.4;
    }
}
