/* Demo Page Styles */
body {
    background: var(--theme-gradient-primary) !important;
}

/* Make navbar solid for visibility */
.navbar {
    background: color-mix(in srgb, var(--theme-bg-primary) 98%, transparent) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(var(--theme-primary-rgb), 0.12);
}

.registration-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 3rem 1rem 2.5rem;
}

.register-container {
    background: var(--theme-bg-primary);
    border-radius: 24px;
    box-shadow: 0 20px 80px rgba(var(--theme-primary-rgb), 0.18);
    max-width: 1600px;
    width: 100%;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
    position: relative;
    margin: 0 auto;
}

/* LEFT SIDE */
.left-side {
    background: var(--theme-gradient-primary);
    padding: 3.25rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--theme-text-inverse);
    position: relative;
    overflow: visible;
}

.left-side::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -35%;
    width: 170%;
    height: 170%;
    background: radial-gradient(circle, color-mix(in srgb, var(--theme-text-inverse) 12%, transparent) 0%, transparent 70%);
    opacity: 0.6;
}

.brand-content {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    background: var(--theme-bg-primary);
    color: var(--theme-primary);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.tagline {
    font-size: clamp(2.125rem, 2.5vw + 1rem, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 3rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.0625rem;
}

.feature i {
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--theme-text-inverse) 20%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--theme-text-inverse);
}

/* RIGHT SIDE */
.right-side {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--theme-bg-primary);
}

.form-header {
    margin-bottom: 1.75rem;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1rem;
    color: var(--theme-text-secondary);
    margin-bottom: 0.75rem;
}

.form-header p:last-child {
    margin-bottom: 0;
}

.form-header p a {
    color: var(--theme-primary);
    font-weight: 600;
    text-decoration: none;
}

/* PROGRESS */
.progress-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.progress-step {
    flex: 1;
    height: 4px;
    background: var(--theme-border-light);
    border-radius: 4px;
}

.progress-step.active {
    background: var(--theme-primary);
}

.progress-step.completed {
    background: var(--theme-success);
}

/* FORM STEPS */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.9375rem;
    color: var(--theme-text-secondary);
    margin-bottom: 2rem;
}

/* FORM */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--theme-text-primary);
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--theme-primary);
    background: var(--theme-bg-primary);
    box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), 0.1);
}

.password-strength {
    margin-top: 0.75rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.password-strength.is-visible {
    max-height: 80px;
    opacity: 1;
}

.password-strength__track {
    height: 4px;
    background: var(--theme-bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength__bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    background: var(--theme-gradient-primary);
}

.password-strength__bar.is-weak {
    background: var(--theme-gradient-danger);
}

.password-strength__bar.is-medium {
    background: var(--theme-gradient-warning);
}

.password-strength__bar.is-strong {
    background: var(--theme-gradient-success);
}

.password-strength__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-text-secondary);
    transition: color 0.3s ease;
}

.password-strength__label.is-weak {
    color: var(--theme-danger);
}

.password-strength__label.is-medium {
    color: var(--theme-warning);
}

.password-strength__label.is-strong {
    color: var(--theme-success);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--theme-primary);
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 0.9375rem;
    color: var(--theme-text-secondary);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 600;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.plan-card {
    position: relative;
    cursor: pointer;
}

.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-card-inner {
    padding: 1.75rem 1.5rem;
    border: 3px solid var(--theme-border-light);
    border-radius: 16px;
    background: var(--theme-bg-secondary);
    transition: all 0.2s ease;
    height: 100%;
}

.plan-card:hover .plan-card-inner {
    border-color: var(--theme-primary);
    background: var(--theme-bg-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--theme-primary-rgb), 0.15);
}

.plan-card input[type="radio"]:checked + .plan-card-inner {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), 0.05);
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.2);
}

.plan-overage-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border-light);
    font-size: 0.8125rem;
    color: var(--theme-text-secondary);
}

.plan-popular {
    position: absolute;
    top: -12px;
    right: 1rem;
    background: var(--theme-gradient-success);
    color: var(--theme-text-inverse);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(var(--theme-success-rgb), 0.32);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--theme-primary);
    margin-bottom: 0.25rem;
}

.plan-price-small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
}

.plan-trial {
    display: inline-block;
    background: var(--theme-gradient-primary);
    color: var(--theme-text-inverse);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0.75rem 0 1.25rem 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
}

.plan-features li i {
    color: var(--theme-success);
}

/* BUTTONS */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.btn-primary {
    background: var(--theme-gradient-primary);
    color: var(--theme-text-inverse);
    box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.4);
}

.btn-secondary {
    background: var(--theme-bg-primary);
    color: var(--theme-text-secondary);
    border: 2px solid var(--theme-border-light);
}

.btn-secondary:hover {
    background: var(--theme-bg-secondary);
}

/* ALERTS */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.alert-error {
    background: rgba(var(--theme-danger-rgb), 0.16);
    color: var(--theme-danger);
    border: 1px solid color-mix(in srgb, var(--theme-danger) 40%, transparent);
}

.alert-info {
    background: rgba(var(--theme-info-rgb), 0.12);
    color: var(--theme-info);
    border: 1px solid color-mix(in srgb, var(--theme-info) 35%, transparent);
}

/* SUMMARY CARDS */
.summary-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.summary-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--theme-border-light);
}

.summary-card-icon {
    width: 40px;
    height: 40px;
    background: var(--theme-gradient-primary);
    color: var(--theme-text-inverse);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.summary-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
}

.summary-label {
    color: var(--theme-text-secondary);
    font-weight: 500;
}

.summary-value {
    color: var(--theme-text-primary);
    font-weight: 600;
    text-align: right;
}

.summary-plan-highlight {
    background: var(--theme-gradient-primary);
    color: var(--theme-text-inverse);
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.summary-plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.summary-plan-price {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.summary-plan-price__value {
    color: var(--theme-text-inverse);
}

.summary-plan-price__period {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-left: 0.25rem;
}

.summary-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--theme-text-inverse) 92%, transparent);
}

.summary-plan-features li i {
    font-size: 0.75rem;
    color: var(--theme-text-inverse);
}

.summary-plan-overage {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--theme-text-inverse) 20%, transparent);
    font-size: 0.875rem;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .register-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .left-side { display: none; }
}

@media (max-width: 640px) {
    .pricing-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    .right-side {
        padding: 2rem 1.5rem;
    }
}
