/* Overrides to align DragonsPix Theme auth screens with Dragons PIX branding */
body.nft-auth-page {
    background: #050720;
    color: #f8fafc;
    min-height: 100vh;
}

body.nft-auth-page .auth-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

body.nft-auth-page .breadcrumb-area {
    background-position: center;
    background-size: cover;
}

body.nft-auth-page .login-welcome-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2.25rem 2.5rem;
    border-radius: 22px;
    background: rgba(14, 18, 44, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 45px rgba(6, 9, 28, 0.55);
}

body.nft-auth-page .login-welcome-content .title {
    text-transform: none;
    letter-spacing: 0.01em;
}

body.nft-auth-page .login-welcome-content p {
    margin-bottom: 0;
    color: rgba(226, 232, 240, 0.85);
}

body.nft-auth-page .welcome-rating img {
    max-width: 140px;
}

body.nft-auth-page .auth-card {
    background: rgba(15, 20, 45, 0.9) !important;
    border-radius: 24px;
    padding: 2.5rem 2.75rem;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    backdrop-filter: blur(18px);
    box-shadow: 0 35px 65px rgba(5, 7, 22, 0.55);
}

/* Ensure any generic bootstrap cards or theme cards don't appear white on auth pages */
body.nft-auth-page .card,
body.nft-auth-page .theme-modal-card {
    background: rgba(15, 20, 45, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    color: #e5e7eb;
}

/* Safety: hide any stray theme confirm overlay unless explicitly shown */
body.nft-auth-page #themeConfirmModal { display: none; }

body.nft-auth-page .auth-card .title {
    text-align: center;
    margin-bottom: 2rem;
}

body.nft-auth-page .auth-card .form-grp {
    margin-bottom: 1.35rem;
}

body.nft-auth-page .auth-card .form-grp label {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
    margin-bottom: 0.45rem;
    display: block;
}

body.nft-auth-page .auth-card .form-grp input {
    background: rgba(11, 15, 35, 0.93);
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 16px;
    color: #f8fafc;
    padding: 0.9rem 1.15rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.nft-auth-page .auth-card .form-grp input::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

body.nft-auth-page .auth-card .form-grp input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.28);
}

body.nft-auth-page .auth-card .form-check {
    background: rgba(12, 16, 40, 0.9);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

body.nft-auth-page .auth-card .form-check-label {
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.5;
}

body.nft-auth-page .auth-card .form-check a {
    color: #60a5fa;
    font-weight: 600;
}

body.nft-auth-page .auth-card .form-check a:hover {
    color: #93c5fd;
}

body.nft-auth-page .auth-submit {
    font-weight: 600;
    letter-spacing: 0.015em;
    padding: 0.95rem 1.2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

body.nft-auth-page .auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(99, 102, 241, 0.4);
}

body.nft-auth-page .auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.nft-auth-page .another-way-signup ul.another-way-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.nft-auth-page .auth-feature-list li a {
    gap: 1rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
}

body.nft-auth-page .auth-feature-list li a img {
    max-width: 42px;
    filter: drop-shadow(0 4px 10px rgba(96, 165, 250, 0.25));
}

body.nft-auth-page .auth-submit.auth-submit-secondary {
    margin-top: 2rem;
    background: linear-gradient(135deg, #f97316 0%, #fb7185 100%);
}

body.nft-auth-page .auth-submit.auth-submit-secondary:hover {
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.35);
}

body.nft-auth-page .auth-card p:last-child {
    margin-bottom: 0;
}

/* Live stats card (replacing wallet options) */
.live-stats.auth-card .stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.live-stats.auth-card .stats-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(10, 14, 35, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    margin-bottom: 0.65rem;
}
.live-stats .stat-label { color: rgba(226,232,240,.9); font-weight: 600; }
.live-stats .stat-value { color: #93c5fd; font-weight: 700; }
.live-stats .stat-icon { color: #a78bfa; margin-right: .5rem; font-size: 1rem; }

/* Ensure form controls never overflow the card on small viewports */
body.nft-auth-page .auth-card input,
body.nft-auth-page .auth-card select,
body.nft-auth-page .auth-card textarea,
body.nft-auth-page .auth-card button {
    max-width: 100%;
}

@media (max-width: 992px) {
    body.nft-auth-page .auth-main {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    body.nft-auth-page .auth-card {
        padding: 2rem 1.75rem;
    }

    body.nft-auth-page .login-welcome-wrap {
        padding: 1.75rem;
    }

    /* Stack columns nicely and avoid overflow */
    body.nft-auth-page .row > [class^="col-"] {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 576px) {
    body.nft-auth-page .auth-main { padding: 0 1rem; }
    body.nft-auth-page .auth-card { padding: 1.5rem 1.25rem; border-radius: 18px; }
    body.nft-auth-page .login-welcome-wrap { padding: 1.25rem; border-radius: 18px; }
    body.nft-auth-page .auth-card .form-grp input { padding: 0.8rem 1rem; border-radius: 12px; }
    body.nft-auth-page .welcome-rating img { max-width: 110px; }
}

/* Background particles canvas defaults */
#dp-bg-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
