/* =============================================================
   NetLock Members Portal — Auth-Pages Stylesheet
   Used by: Login, Register, Reset_Password, Demo
   Design language ported from netlock-launchpad-20 (React/Tailwind)
   ============================================================= */

/* Inter Font — Local Version (GDPR compliant) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter/Inter-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/inter/Inter-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/inter/Inter-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/inter/Inter-ExtraBold.woff2') format('woff2');
}

/* -------------------------------------------------------------
   Page Wrappers — dark gradient backdrop, fixed full-bleed
   ------------------------------------------------------------- */
.login-page-wrapper,
.register-page-wrapper,
.reset-password-wrapper,
.demo-page-wrapper {
    font-family: 'Inter', sans-serif;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    /* justify-content stays at flex-start so long pages scroll from the top
       instead of getting clipped (classic flexbox + overflow-auto bug).
       Vertical centering for short content is handled by `margin: auto 0`
       on .screen-1 / .demo-container. */
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(135deg, hsl(222 47% 6%) 0%, hsl(222 47% 12%) 100%);
    padding: 2rem;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    user-select: none;
    overflow-x: hidden;
    overflow-y: auto;
    color: hsl(210 40% 98%);
}

.register-page-wrapper *,
.reset-password-wrapper * {
    font-family: 'Inter', sans-serif;
}

/* -------------------------------------------------------------
   Decorative background — pulsing blurs + concentric rings
   ------------------------------------------------------------- */
.bg-blur {
    /* fixed so the same divs work both inside the auth-page wrappers
       (which are position:fixed themselves) and inside MudLayout's flow */
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    will-change: opacity, transform;
}

.bg-blur-primary {
    top: 25%;
    left: -25%;
    width: 24rem;
    height: 24rem;
    background: hsl(0 0% 100% / 0.10);
    animation: pulseGlow 8s ease-in-out infinite;
}

.bg-blur-accent {
    bottom: 25%;
    right: -25%;
    width: 24rem;
    height: 24rem;
    background: hsl(187 85% 53% / 0.18);
    animation: pulseGlow 10s ease-in-out infinite reverse;
}

.bg-ring {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.bg-ring-outer {
    width: 800px;
    height: 800px;
    border: 1px solid hsl(0 0% 100% / 0.05);
}

.bg-ring-inner {
    width: 600px;
    height: 600px;
    border: 1px solid hsl(0 0% 100% / 0.10);
}

/* -------------------------------------------------------------
   Glass Card (.screen-1) — primary container for forms
   ------------------------------------------------------------- */
.screen-1 {
    background: hsl(222 47% 8% / 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5em 2.25em;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid hsl(0 0% 100% / 0.10);
    box-shadow: 0 25px 50px -12px hsl(222 47% 4% / 0.5),
                0 0 60px -15px hsl(187 85% 53% / 0.30);
    gap: 1.25em;
    max-width: 460px;
    width: 100%;
    animation: slideIn 0.6s ease-out;
    position: relative;
    z-index: 1;
    overflow: visible;
    /* auto-margins center the card vertically when the wrapper has free space
       and collapse to 0 when content overflows — keeping scroll-up working */
    margin: auto;
}

/* -------------------------------------------------------------
   Logo
   ------------------------------------------------------------- */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -0.5em;
    margin-bottom: 0.25em;
}

.logo-container img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

/* -------------------------------------------------------------
   Titles & Subtitles
   ------------------------------------------------------------- */
.login-title,
.register-title,
.reset-title,
.demo-title {
    text-align: center;
    color: hsl(210 40% 98%);
    font-size: 1.85em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.25em 0;
}

.demo-subtitle {
    text-align: center;
    color: hsl(215 20% 65%);
    font-size: 1em;
    margin: 0 0 1em 0;
}

.title-accent {
    background: linear-gradient(135deg, hsl(187 85% 53%) 0%, hsl(199 89% 48%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* -------------------------------------------------------------
   Input Groups
   ------------------------------------------------------------- */
.input-group {
    background: hsl(222 30% 18% / 0.5);
    border: 1px solid hsl(222 30% 25%);
    padding: 0.9em 1em;
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    border-radius: 12px;
    color: hsl(210 40% 98%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-group:focus-within {
    border-color: hsl(187 85% 53%);
    background: hsl(222 30% 18% / 0.7);
    box-shadow: 0 0 0 3px hsl(187 85% 53% / 0.15);
}

.input-group.error {
    border-color: hsl(0 84% 60%);
    box-shadow: 0 0 0 3px hsl(0 84% 60% / 0.15);
}

.input-group label {
    font-size: 0.78em;
    font-weight: 500;
    color: hsl(215 20% 65%);
    margin-bottom: 0.1em;
    letter-spacing: 0.02em;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.input-wrapper .mud-icon-root {
    color: hsl(187 85% 53%);
    font-size: 1.2em;
    flex-shrink: 0;
}

.input-group input,
.input-group select {
    outline: none;
    border: none;
    background: transparent;
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.95em;
    color: hsl(210 40% 98%);
    min-width: 0;
}

.input-group select {
    cursor: pointer;
    padding: 0.3em 0;
}

.input-group select option {
    background: hsl(222 47% 10%);
    color: hsl(210 40% 98%);
}

.input-group input::placeholder {
    color: hsl(215 20% 45%);
    font-size: 0.9em;
}

/* Override browser autofill so it doesn't paint inputs pale yellow */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px hsl(222 30% 18%) inset !important;
    -webkit-text-fill-color: hsl(210 40% 98%) !important;
    caret-color: hsl(210 40% 98%);
    transition: background-color 5000s ease-in-out 0s;
}

.show-hide-icon {
    cursor: pointer;
    transition: color 0.2s ease;
}

.show-hide-icon .mud-icon-root {
    color: hsl(215 20% 65%) !important;
}

.show-hide-icon:hover .mud-icon-root {
    color: hsl(187 85% 53%) !important;
}

/* -------------------------------------------------------------
   Primary CTA (gradient cyan)
   ------------------------------------------------------------- */
.login-button,
.register-button,
.reset-button,
.demo-button {
    padding: 0.95em 1em;
    background: linear-gradient(135deg, hsl(187 85% 53%) 0%, hsl(199 89% 48%) 100%);
    color: hsl(222 47% 6%);
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 60px -15px hsl(187 85% 53% / 0.50);
    margin-top: 0.25em;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.login-button:hover:not(:disabled),
.register-button:hover:not(:disabled),
.reset-button:hover:not(:disabled),
.demo-button:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
    opacity: 0.95;
    box-shadow: 0 0 60px -10px hsl(187 85% 53% / 0.65);
}

.login-button:active,
.register-button:active,
.reset-button:active,
.demo-button:active {
    transform: translateY(0);
}

.login-button:disabled,
.register-button:disabled,
.reset-button:disabled,
.demo-button:disabled {
    background: hsl(222 30% 18%);
    color: hsl(215 20% 45%);
    cursor: not-allowed;
    box-shadow: none;
}

/* -------------------------------------------------------------
   Secondary / Outline Button
   ------------------------------------------------------------- */
.secondary-button,
.demo-button-secondary {
    background: transparent;
    border: 1px solid hsl(0 0% 100% / 0.15);
    padding: 0.85em 1em;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    color: hsl(210 40% 98%);
    margin-top: 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.secondary-button:hover,
.demo-button-secondary:hover {
    background: hsl(0 0% 100% / 0.05);
    border-color: hsl(0 0% 100% / 0.25);
}

/* -------------------------------------------------------------
   Messages: error / info / success
   ------------------------------------------------------------- */
.error-message {
    background: hsl(0 84% 60% / 0.10);
    color: hsl(0 84% 78%);
    padding: 0.75em 1em;
    border-radius: 10px;
    font-size: 0.85em;
    text-align: center;
    margin-top: 0.25em;
    animation: shake 0.5s ease;
    border: 1px solid hsl(0 84% 60% / 0.30);
}

.success-message {
    background: hsl(122 39% 49% / 0.10);
    color: hsl(122 39% 70%);
    padding: 0.85em 1em;
    border-radius: 10px;
    font-size: 0.9em;
    text-align: center;
    margin-top: 0.25em;
    border: 1px solid hsl(122 39% 49% / 0.30);
    line-height: 1.6;
}

.success-message strong {
    display: block;
    font-size: 1.05em;
    margin-bottom: 0.4em;
    color: hsl(122 39% 80%);
}

.info-text {
    font-size: 0.9em;
    color: hsl(215 20% 65%);
    text-align: center;
    line-height: 1.6;
    margin: 0.25em 0;
}

.info-text strong {
    color: hsl(210 40% 98%);
}

/* -------------------------------------------------------------
   QR Code Container — keep white inner so the QR scans reliably
   ------------------------------------------------------------- */
.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5em;
    background: hsl(0 0% 100%);
    border-radius: 12px;
    margin: 0.5em 0;
    border: 1px solid hsl(187 85% 53% / 0.40);
    box-shadow: 0 0 40px -10px hsl(187 85% 53% / 0.30);
}

.qr-code-container img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* -------------------------------------------------------------
   Footer Links
   ------------------------------------------------------------- */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6em 1.2em;
    font-size: 0.78em;
    color: hsl(215 20% 50%);
    margin-top: 0.25em;
    padding-top: 1em;
    border-top: 1px solid hsl(0 0% 100% / 0.05);
}

.footer-links span {
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links span:hover {
    color: hsl(187 85% 53%);
}

/* -------------------------------------------------------------
   Register: Password strength + validation requirements
   ------------------------------------------------------------- */
.password-strength-indicator {
    height: 4px;
    margin-top: 0.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    background: hsl(222 30% 25%);
}

.strength-weak    { background-color: hsl(0 84% 60%); }
.strength-fair    { background-color: hsl(36 100% 55%); }
.strength-good    { background-color: hsl(199 89% 55%); }
.strength-strong  { background-color: hsl(122 39% 55%); }

.validation-hint {
    font-size: 0.75em;
    color: hsl(0 84% 78%);
    margin-top: 0.3em;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.validation-requirements {
    font-size: 0.78em;
    color: hsl(215 20% 65%);
    margin-top: 0.3em;
    padding: 0.85em 1em;
    background: hsl(222 30% 18% / 0.5);
    border-radius: 12px;
    border: 1px solid hsl(222 30% 25%);
}

.validation-requirements.success {
    color: hsl(122 39% 70%);
    background: hsl(122 39% 49% / 0.10);
    border-color: hsl(122 39% 49% / 0.30);
}

.validation-requirements strong {
    display: block;
    margin-bottom: 0.5em;
    color: hsl(210 40% 98%);
}

.validation-requirements ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.validation-requirements li {
    margin: 0.25em 0;
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.1em 0;
}

.validation-requirements li.valid {
    color: hsl(122 39% 70%);
    font-weight: 500;
}

.validation-requirements li.invalid {
    color: hsl(215 20% 50%);
}

/* -------------------------------------------------------------
   Register: Terms & Captcha
   ------------------------------------------------------------- */
.terms-box {
    background: hsl(222 30% 18% / 0.5);
    border: 1px solid hsl(222 30% 25%);
    border-radius: 12px;
    padding: 0.9em 1em;
    margin-top: 0.25em;
}

.terms-box label {
    font-size: 0.82em;
    color: hsl(215 20% 80%);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin: 0.4em 0;
}

.terms-box span {
    color: hsl(215 20% 80%);
}

.terms-box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: hsl(187 85% 53%);
}

.terms-box a {
    color: hsl(187 85% 53%);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-box a:hover {
    color: hsl(199 89% 60%);
    text-decoration: underline;
}

.captcha-box {
    background: hsl(222 30% 18% / 0.5);
    border: 1px solid hsl(222 30% 25%);
    border-radius: 12px;
    padding: 0.9em 1em;
    margin-top: 0.25em;
}

.captcha-question {
    font-size: 0.92em;
    font-weight: 600;
    color: hsl(210 40% 98%);
    margin-bottom: 0.7em;
    text-align: center;
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5em;
    max-width: 280px;
    margin: 0 auto;
}

.captcha-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7em;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px solid hsl(222 30% 30%);
    background: hsl(222 30% 14%);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.captcha-cell:hover {
    border-color: hsl(187 85% 53%);
    transform: scale(1.04);
}

.captcha-cell.selected {
    border-color: hsl(187 85% 53%);
    background: hsl(187 85% 53% / 0.10);
    box-shadow: 0 0 0 2px hsl(187 85% 53% / 0.40);
}

.captcha-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: auto;
}

/* -------------------------------------------------------------
   Reset_Password: One-Time Password display box
   ------------------------------------------------------------- */
.password-box {
    background: hsl(222 30% 18% / 0.7);
    border: 1px solid hsl(122 39% 49% / 0.50);
    border-radius: 12px;
    padding: 1em;
    margin: 0.5em 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: hsl(122 39% 75%);
    letter-spacing: 0.1em;
    box-shadow: 0 0 40px -10px hsl(122 39% 49% / 0.30);
}

/* -------------------------------------------------------------
   Demo: container + cards
   ------------------------------------------------------------- */
.demo-container {
    max-width: 920px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    animation: slideIn 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.demo-card {
    background: hsl(222 47% 8% / 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.75em;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid hsl(0 0% 100% / 0.10);
    box-shadow: 0 25px 50px -12px hsl(222 47% 4% / 0.5);
    gap: 1.25em;
}

.demo-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25em;
}

.demo-card-title {
    color: hsl(210 40% 98%);
    font-size: 1.15em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.demo-card-title .mud-icon-root {
    color: hsl(187 85% 53%);
}

/* -------------------------------------------------------------
   Demo: status badges, info rows, credentials
   ------------------------------------------------------------- */
.status-badge {
    padding: 0.35em 0.9em;
    border-radius: 999px;
    font-size: 0.82em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.status-online {
    background: hsl(122 39% 49% / 0.15);
    color: hsl(122 39% 75%);
    border: 1px solid hsl(122 39% 49% / 0.40);
}

.status-offline {
    background: hsl(36 100% 55% / 0.15);
    color: hsl(36 100% 70%);
    border: 1px solid hsl(36 100% 55% / 0.40);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7em 0;
    border-bottom: 1px solid hsl(0 0% 100% / 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: hsl(215 20% 65%);
    font-size: 0.88em;
}

.info-value {
    color: hsl(210 40% 98%);
    font-weight: 500;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.credentials-box {
    background: hsl(222 30% 18% / 0.5);
    border: 1px solid hsl(222 30% 25%);
    padding: 1.25em 1.25em 0.75em 1.25em;
    border-radius: 12px;
}

.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3em;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: hsl(187 85% 53%);
    display: inline-flex;
    align-items: center;
}

.copy-btn:hover {
    background: hsl(187 85% 53% / 0.10);
}

/* -------------------------------------------------------------
   Demo: Alert boxes
   ------------------------------------------------------------- */
.alert-box {
    padding: 1em 1.1em;
    border-radius: 12px;
    font-size: 0.9em;
    line-height: 1.6;
}

.alert-info {
    background: hsl(199 89% 48% / 0.10);
    border: 1px solid hsl(199 89% 48% / 0.30);
    color: hsl(199 89% 80%);
}

.alert-warning {
    background: hsl(36 100% 55% / 0.10);
    border: 1px solid hsl(36 100% 55% / 0.30);
    color: hsl(36 100% 80%);
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.3em;
    color: hsl(210 40% 98%);
}

/* -------------------------------------------------------------
   Demo: Back link & Disclaimer popup
   ------------------------------------------------------------- */
.back-link {
    display: flex;
    justify-content: center;
    margin-top: 0.5em;
}

.back-link a {
    color: hsl(215 20% 65%);
    text-decoration: none;
    font-size: 0.88em;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: hsl(187 85% 53%);
}

.disclaimer-overlay {
    position: fixed;
    inset: 0;
    background: hsl(222 47% 4% / 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.disclaimer-popup {
    background: hsl(222 47% 8% / 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsl(0 0% 100% / 0.10);
    border-radius: 16px;
    padding: 2em;
    max-width: 540px;
    width: 90%;
    box-shadow: 0 25px 50px -12px hsl(222 47% 4% / 0.7),
                0 0 60px -15px hsl(187 85% 53% / 0.20);
    animation: slideIn 0.3s ease-out;
    color: hsl(210 40% 98%);
}

.disclaimer-popup-title {
    font-size: 1.2em;
    font-weight: 600;
    color: hsl(210 40% 98%);
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1em;
}

.disclaimer-popup-title .mud-icon-root {
    color: hsl(36 100% 60%);
}

.disclaimer-popup-actions {
    display: flex;
    gap: 0.8em;
    margin-top: 1.5em;
}

.disclaimer-popup-actions button {
    flex: 1;
}

/* -------------------------------------------------------------
   Animations
   ------------------------------------------------------------- */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-8px); }
    75%      { transform: translateX(8px); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.30; transform: scale(1); }
    50%      { opacity: 0.60; transform: scale(1.10); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 768px) {
    .login-page-wrapper,
    .register-page-wrapper,
    .reset-password-wrapper,
    .demo-page-wrapper {
        padding: 1.5rem 1rem;
    }

    .screen-1 {
        padding: 2em 1.5em;
        gap: 1em;
        max-width: 100%;
    }

    .demo-card {
        padding: 1.5em;
    }

    .demo-card-row {
        grid-template-columns: 1fr;
    }

    .logo-container img {
        width: 160px;
    }

    .login-title,
    .register-title,
    .reset-title,
    .demo-title {
        font-size: 1.55em;
    }

    .footer-links {
        gap: 0.5em 1em;
    }

    .bg-blur-primary,
    .bg-blur-accent {
        width: 16rem;
        height: 16rem;
    }

    .bg-ring-outer { width: 500px; height: 500px; }
    .bg-ring-inner { width: 350px; height: 350px; }
}

/* =============================================================
   MEMBER PORTAL — PRICING / DASHBOARD EXTENSIONS
   Used by: Memberships.razor (routes /home /products /dashboard)
   Layered on top of the global .mud-card / .mud-paper glass treatment
   from MainLayout.razor.
   ============================================================= */

.dashboard-page {
    position: relative;
    z-index: 1;
}

/* Hero band — gradient title + subtitle, sits at the top of the page */
.dashboard-hero {
    text-align: center;
    padding: 1em 0 1.5em 0;
}

.dashboard-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2em, 4vw, 2.75em);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: hsl(210 40% 98%);
    margin: 0 0 0.4em 0;
}

.dashboard-hero p {
    color: hsl(215 20% 65%);
    font-size: 1.05em;
    margin: 0;
}

/* Segmented toggle (replaces MudSwitch + MudButtonGroup pair).
   Wrapper that holds two-segment glass pills. Used both for
   monthly/yearly and on-prem/cloud. */
.pricing-toggle-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    margin: 1em 0 2em 0;
}

.pricing-toggle-label {
    color: hsl(215 20% 65%);
    font-size: 0.9em;
    font-weight: 500;
}

/* Override MudButtonGroup so the active segment is the cyan gradient
   pill and inactives fade to muted glass */
.dashboard-page .mud-button-group {
    background: hsl(222 30% 18% / 0.5);
    border: 1px solid hsl(222 30% 25%);
    border-radius: 999px;
    padding: 4px;
    box-shadow: none !important;
    overflow: hidden;
}

.dashboard-page .mud-button-group .mud-button {
    border: none !important;
    border-radius: 999px !important;
    color: hsl(215 20% 70%) !important;
    background: transparent !important;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    font-weight: 500;
    text-transform: none;
    padding: 0.45em 1.1em !important;
}

.dashboard-page .mud-button-group .mud-button:hover {
    color: hsl(210 40% 98%) !important;
    background: hsl(0 0% 100% / 0.04) !important;
}

.dashboard-page .mud-button-group .mud-button.mud-button-filled,
.dashboard-page .mud-button-group .mud-button.mud-button-filled-primary {
    background: linear-gradient(135deg, hsl(187 85% 53%), hsl(199 89% 48%)) !important;
    color: hsl(0 0% 100%) !important;
    box-shadow: 0 0 30px -8px hsl(187 85% 53% / 0.5) !important;
    font-weight: 600 !important;
}

.dashboard-page .mud-button-group .mud-button.mud-button-filled .mud-button-label,
.dashboard-page .mud-button-group .mud-button.mud-button-filled-primary .mud-button-label {
    color: hsl(0 0% 100%) !important;
}

/* Pricing tier card — extends the global .mud-card glass surface.
   Coder applies Class="tier-card" to each <MudCard> inside the page. */
.dashboard-page .pricing-card {
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: fadeUp 0.5s ease-out backwards;
    border-radius: 16px !important;
    overflow: visible !important;
}

.dashboard-page .pricing-card:hover {
    transform: translateY(-4px);
    border-color: hsl(187 85% 53% / 0.40) !important;
    box-shadow: 0 30px 60px -12px hsl(222 47% 4% / 0.6),
                0 0 60px -15px hsl(187 85% 53% / 0.40) !important;
}

.dashboard-page .pricing-card.featured {
    border: 1px solid hsl(187 85% 53% / 0.5) !important;
    box-shadow: 0 25px 50px -12px hsl(222 47% 4% / 0.5),
                0 0 70px -10px hsl(187 85% 53% / 0.55) !important;
    transform: scale(1.02);
}

.dashboard-page .pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

/* "Most Popular" pill above the title in featured tiers */
.popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: linear-gradient(135deg, hsl(187 85% 53%), hsl(199 89% 48%));
    color: hsl(222 47% 6%);
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35em 0.9em;
    border-radius: 999px;
    align-self: flex-start;
    box-shadow: 0 0 30px -8px hsl(187 85% 53% / 0.6);
}

/* Tier price — gradient text, like .title-accent */
.tier-price {
    font-family: 'Inter', sans-serif;
    font-size: 2.25em;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, hsl(187 85% 53%) 0%, hsl(199 89% 48%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.02em;
}

.tier-price-period {
    color: hsl(215 20% 65%);
    font-size: 0.95em;
    font-weight: 500;
    -webkit-text-fill-color: hsl(215 20% 65%);
    background: none;
    margin-left: 0.2em;
}

/* Tier feature list — checkmark icons cyan */
.dashboard-page .mud-list .mud-list-item .mud-list-item-icon .mud-icon-root {
    color: hsl(187 85% 53%) !important;
}

.dashboard-page .mud-list-item-text {
    color: hsl(210 40% 98% / 0.85);
}

/* Stagger the entrance animation across the grid */
.dashboard-page .pricing-card { animation-delay: 0s; }
.dashboard-page .mud-grid > .mud-grid-item:nth-child(2) .pricing-card { animation-delay: 0.05s; }
.dashboard-page .mud-grid > .mud-grid-item:nth-child(3) .pricing-card { animation-delay: 0.10s; }
.dashboard-page .mud-grid > .mud-grid-item:nth-child(4) .pricing-card { animation-delay: 0.15s; }
.dashboard-page .mud-grid > .mud-grid-item:nth-child(5) .pricing-card { animation-delay: 0.20s; }
.dashboard-page .mud-grid > .mud-grid-item:nth-child(6) .pricing-card { animation-delay: 0.25s; }

/* Expansion-panel banner ("Need guaranteed response times?") */
.dashboard-page .mud-expand-panel {
    background: hsl(222 47% 8% / 0.4) !important;
    border: 1px solid hsl(0 0% 100% / 0.06) !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin-top: 1em;
}

.dashboard-page .mud-expand-panel-header {
    color: hsl(210 40% 98%) !important;
}

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

/* =============================================================
   NetLock Logo-Reveal Particles canvas — sits behind everything
   in the auth-page wrapper so the Logo Reveal + NASA-style
   free-roam animation is the page backdrop. Mouse interaction
   stays active so grab/push works from anywhere on the screen
   that isn't covered by the login card.
   ============================================================= */
#netlock-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: auto;
    z-index: 0;
}

/* NASA-only background container (used on /demo, /reset_password,
   /open-source via NetLockNasaBackground.init — particles.js style,
   no logo reveal). Same pattern as #netlock-particles but particles.js
   injects its own canvas inside, so we keep the wrapper empty. */
.nasa-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: auto;
    z-index: 0;
}

.nasa-bg-container canvas {
    display: block;
}

/* The login card and ambient blurs need to sit above the canvas */
.login-page-wrapper .screen-1,
.register-page-wrapper .screen-1,
.reset-password-wrapper .screen-1 {
    z-index: 2;
}

.login-page-wrapper .bg-blur,
.login-page-wrapper .bg-ring,
.register-page-wrapper .bg-blur,
.register-page-wrapper .bg-ring,
.reset-password-wrapper .bg-blur,
.reset-password-wrapper .bg-ring {
    z-index: 1;
}

/* =============================================================
   Side-left layout — pins the login card to the left edge as a
   full-height side panel. Activated by `login-side-left` class
   on .login-page-wrapper.
   ============================================================= */
.login-page-wrapper.login-side-left {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
}

.login-page-wrapper.login-side-left .screen-1 {
    width: 480px;
    max-width: 100%;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    padding: 4em 3em;
    box-shadow: 0 0 3em rgba(0, 0, 0, 0.5),
                0 0 60px -15px hsl(187 85% 53% / 0.30);
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    animation: slideInFromSide 0.6s ease-out;
    /* Slight backdrop tint so the card stays readable while the canvas
       runs underneath it — opaque enough to break particle visibility
       through the card body. */
    background: hsl(222 47% 8% / 0.72);
}

@keyframes slideInFromSide {
    from { transform: translateX(-40px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@media (max-width: 520px) {
    .login-page-wrapper.login-side-left .screen-1 {
        width: 100%;
    }
}
